@@ -16,7 +16,6 @@ import { usePlatformOS } from "@/hooks/use-platform-os";
1616// plane web components
1717import { PlaneVersionNumber } from "@/plane-web/components/global" ;
1818import { WorkspaceEditionBadge } from "@/plane-web/components/workspace" ;
19- import { ENABLE_LOCAL_DB_CACHE } from "@/plane-web/constants/issues" ;
2019
2120export interface WorkspaceHelpSectionProps {
2221 setSidebarActive ?: React . Dispatch < React . SetStateAction < boolean > > ;
@@ -111,23 +110,21 @@ export const SidebarHelpSection: React.FC<WorkspaceHelpSectionProps> = observer(
111110 </ a >
112111 </ CustomMenu . MenuItem >
113112 < div className = "my-1 border-t border-custom-border-200" />
114- { ENABLE_LOCAL_DB_CACHE && (
115- < CustomMenu . MenuItem >
116- < div
117- onClick = { ( e ) => {
118- e . preventDefault ( ) ;
119- e . stopPropagation ( ) ;
120- } }
121- className = "flex w-full items-center justify-between text-xs hover:bg-custom-background-80"
122- >
123- < span className = "racking-tight" > Local Cache</ span >
124- < ToggleSwitch
125- value = { canUseLocalDB }
126- onChange = { ( ) => toggleLocalDB ( workspaceSlug ?. toString ( ) , projectId ?. toString ( ) ) }
127- />
128- </ div >
129- </ CustomMenu . MenuItem >
130- ) }
113+ < CustomMenu . MenuItem >
114+ < div
115+ onClick = { ( e ) => {
116+ e . preventDefault ( ) ;
117+ e . stopPropagation ( ) ;
118+ } }
119+ className = "flex w-full items-center justify-between text-xs hover:bg-custom-background-80"
120+ >
121+ < span className = "racking-tight" > Local Cache</ span >
122+ < ToggleSwitch
123+ value = { canUseLocalDB }
124+ onChange = { ( ) => toggleLocalDB ( workspaceSlug ?. toString ( ) , projectId ?. toString ( ) ) }
125+ />
126+ </ div >
127+ </ CustomMenu . MenuItem >
131128 < CustomMenu . MenuItem >
132129 < button
133130 type = "button"
@@ -173,8 +170,9 @@ export const SidebarHelpSection: React.FC<WorkspaceHelpSectionProps> = observer(
173170 < Tooltip tooltipContent = { `${ isCollapsed ? "Expand" : "Hide" } ` } isMobile = { isMobile } >
174171 < button
175172 type = "button"
176- className = { `grid place-items-center rounded-md p-1 text-custom-text-200 outline-none hover:bg-custom-background-90 hover:text-custom-text-100 ${ isCollapsed ? "w-full" : ""
177- } `}
173+ className = { `grid place-items-center rounded-md p-1 text-custom-text-200 outline-none hover:bg-custom-background-90 hover:text-custom-text-100 ${
174+ isCollapsed ? "w-full" : ""
175+ } `}
178176 onClick = { ( ) => toggleSidebar ( ) }
179177 >
180178 < MoveLeft className = { `h-4 w-4 duration-300 ${ isCollapsed ? "rotate-180" : "" } ` } />
0 commit comments