Commit 0ca23bb8 authored by StyleZhang's avatar StyleZhang

features

parent 6e3d6c42
......@@ -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 })),
}))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment