mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
refactor: unify account setting tab constants and tighten modal types
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user