refactor: unify account setting tab constants and tighten modal types

This commit is contained in:
lyzno1
2025-11-11 16:16:41 +08:00
parent b344d4add1
commit 3a84a64c32
24 changed files with 84 additions and 46 deletions

View File

@ -45,6 +45,7 @@ import { useAllTriggerPlugins } from '@/service/use-triggers'
import { FlowType } from '@/types/common'
import { canFindTool } from '@/utils'
import cn from '@/utils/classnames'
import { ACCOUNT_SETTING_TAB } from '@/app/components/header/account-setting/constants'
import {
RiCloseLine,
RiPlayLargeLine,
@ -333,7 +334,7 @@ const BasePanel: FC<BasePanelProps> = ({
const { setShowAccountSettingModal } = useModalContext()
const handleJumpToDataSourcePage = useCallback(() => {
setShowAccountSettingModal({ payload: 'data-source' })
setShowAccountSettingModal({ payload: ACCOUNT_SETTING_TAB.DATA_SOURCE })
}, [setShowAccountSettingModal])
const {