Skip to content

Commit bdb3ad1

Browse files
committed
Remove unused useEffect import and active_prompt_type variable in Panel component
1 parent 2b594d6 commit bdb3ad1

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • apps/editor/src/views/panel/frontend

‎apps/editor/src/views/panel/frontend/Panel.tsx‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useState, useEffect } from 'react'
1+
import { useState } from 'react'
22
import { Main } from './Main'
33
import { Button as UiButton } from '@ui/components/editor/common/Button'
44
import { Page as UiPage } from '@ui/components/editor/panel/Page'
@@ -145,9 +145,6 @@ export const Panel = () => {
145145
const { viewing_donations, set_viewing_donations, ...donations_state } =
146146
use_latest_donations()
147147

148-
const active_prompt_type =
149-
mode == MODE.WEB ? web_prompt_type : api_prompt_type
150-
151148
if (
152149
ask_about_context_instructions === undefined ||
153150
edit_context_instructions === undefined ||

0 commit comments

Comments
 (0)