chore: lint code to remove unused imports and variables (#7033)
This commit is contained in:
parent
1a302ca957
commit
4c4f6e362f
10 changed files with 3 additions and 21 deletions
|
|
@ -79,7 +79,7 @@ const EditItem: FC<Props> = ({
|
|||
{!readonly && (
|
||||
<div
|
||||
className='flex items-center space-x-1 leading-[18px] text-xs font-medium text-[#155EEF] cursor-pointer'
|
||||
onClick={(e) => {
|
||||
onClick={() => {
|
||||
setIsEdit(true)
|
||||
}}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ const ConfirmAddVar: FC<IConfirmAddVarProps> = ({
|
|||
varNameArr,
|
||||
onConfrim,
|
||||
onCancel,
|
||||
onHide,
|
||||
// onHide,
|
||||
}) => {
|
||||
const { t } = useTranslation()
|
||||
const mainContentRef = useRef<HTMLDivElement>(null)
|
||||
|
|
|
|||
|
|
@ -69,7 +69,6 @@ const Prompt: FC<ISimplePromptInput> = ({
|
|||
hasSetBlockStatus,
|
||||
showSelectDataSet,
|
||||
externalDataToolsConfig,
|
||||
isAgent,
|
||||
} = useContext(ConfigContext)
|
||||
const { notify } = useToastContext()
|
||||
const { setShowExternalDataToolModal } = useModalContext()
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ function AppCard({
|
|||
}: IAppCardProps) {
|
||||
const router = useRouter()
|
||||
const pathname = usePathname()
|
||||
const { currentWorkspace, isCurrentWorkspaceManager, isCurrentWorkspaceEditor } = useAppContext()
|
||||
const { isCurrentWorkspaceManager, isCurrentWorkspaceEditor } = useAppContext()
|
||||
const [showSettingsModal, setShowSettingsModal] = useState(false)
|
||||
const [showEmbedded, setShowEmbedded] = useState(false)
|
||||
const [showCustomizeModal, setShowCustomizeModal] = useState(false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue