Make it possible to permanently dismiss the web banner from the settings (#2021)
* Make it possible to include a setting only on the Settings dialog, not also in the command bar. * Add web-only setting to permanently dismiss banner * Honor the dismiss web banner setting * Remove unused state from useStore * Make the banner only appear in production builds again
This commit is contained in:
@ -84,8 +84,6 @@ export interface StoreState {
|
||||
|
||||
showHomeMenu: boolean
|
||||
setHomeShowMenu: (showMenu: boolean) => void
|
||||
isBannerDismissed: boolean
|
||||
setBannerDismissed: (isBannerDismissed: boolean) => void
|
||||
openPanes: PaneType[]
|
||||
setOpenPanes: (panes: PaneType[]) => void
|
||||
homeMenuItems: {
|
||||
@ -150,8 +148,6 @@ export const useStore = create<StoreState>()(
|
||||
defaultDir: {
|
||||
dir: '',
|
||||
},
|
||||
isBannerDismissed: false,
|
||||
setBannerDismissed: (isBannerDismissed) => set({ isBannerDismissed }),
|
||||
openPanes: ['code'],
|
||||
setOpenPanes: (openPanes) => set({ openPanes }),
|
||||
showHomeMenu: true,
|
||||
|
Reference in New Issue
Block a user