chore: lint code to remove unused imports and variables (#7033)

This commit is contained in:
DDDDD12138
2024-08-07 13:04:44 +08:00
committed by GitHub
parent 1a302ca957
commit 4c4f6e362f
10 changed files with 3 additions and 21 deletions

View File

@@ -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)
}}
>

View File

@@ -24,7 +24,7 @@ const ConfirmAddVar: FC<IConfirmAddVarProps> = ({
varNameArr,
onConfrim,
onCancel,
onHide,
// onHide,
}) => {
const { t } = useTranslation()
const mainContentRef = useRef<HTMLDivElement>(null)

View File

@@ -69,7 +69,6 @@ const Prompt: FC<ISimplePromptInput> = ({
hasSetBlockStatus,
showSelectDataSet,
externalDataToolsConfig,
isAgent,
} = useContext(ConfigContext)
const { notify } = useToastContext()
const { setShowExternalDataToolModal } = useModalContext()

View File

@@ -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)