mirror of https://github.com/langgenius/dify.git
features
This commit is contained in:
parent
6e3d6c4269
commit
0ca23bb840
|
|
@ -4,14 +4,12 @@ type State = {
|
|||
mode: string
|
||||
showRunHistory: boolean
|
||||
showFeaturesPanel: boolean
|
||||
showFeaturesModal: boolean
|
||||
runStaus: string
|
||||
}
|
||||
|
||||
type Action = {
|
||||
setShowRunHistory: (showRunHistory: boolean) => void
|
||||
setShowFeaturesPanel: (showFeaturesPanel: boolean) => void
|
||||
setShowFeaturesModal: (showFeaturesModal: boolean) => void
|
||||
setRunStaus: (runStaus: string) => void
|
||||
}
|
||||
|
||||
|
|
@ -21,8 +19,6 @@ export const useStore = create<State & Action>(set => ({
|
|||
setShowRunHistory: showRunHistory => set(() => ({ showRunHistory })),
|
||||
showFeaturesPanel: false,
|
||||
setShowFeaturesPanel: showFeaturesPanel => set(() => ({ showFeaturesPanel })),
|
||||
showFeaturesModal: false,
|
||||
setShowFeaturesModal: showFeaturesModal => set(() => ({ showFeaturesModal })),
|
||||
runStaus: '',
|
||||
setRunStaus: runStaus => set(() => ({ runStaus })),
|
||||
}))
|
||||
|
|
|
|||
Loading…
Reference in New Issue