diff --git a/app/assets/javascripts/components/Navigation.tsx b/app/assets/javascripts/components/Navigation.tsx index dbf4e027b..3d9eb0691 100644 --- a/app/assets/javascripts/components/Navigation.tsx +++ b/app/assets/javascripts/components/Navigation.tsx @@ -1,4 +1,3 @@ -import { ComponentView } from '@/components/ComponentView'; import { SmartTagsSection } from '@/components/Tags/SmartTagsSection'; import { TagsSection } from '@/components/Tags/TagsSection'; import { WebApplication } from '@/ui_models/application'; @@ -6,13 +5,7 @@ import { PANEL_NAME_NAVIGATION } from '@/views/constants'; import { ApplicationEvent, PrefKey } from '@standardnotes/snjs'; import { observer } from 'mobx-react-lite'; import { FunctionComponent } from 'preact'; -import { - useCallback, - useEffect, - useMemo, - useRef, - useState, -} from 'preact/hooks'; +import { useCallback, useEffect, useMemo, useState } from 'preact/hooks'; import { PremiumModalProvider } from './Premium'; import { PanelSide, @@ -28,7 +21,6 @@ type Props = { export const Navigation: FunctionComponent = observer( ({ application }) => { const appState = useMemo(() => application.getAppState(), [application]); - const componentViewer = appState.foldersComponentViewer; const enableNativeSmartTagsFeature = appState.features.enableNativeSmartTagsFeature; const [ref, setRef] = useState(); @@ -72,42 +64,30 @@ export const Navigation: FunctionComponent = observer( data-aria-label="Navigation" ref={setRef} > - {componentViewer ? ( -
-
- -
-
- ) : ( -