mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Remove settings header, make legacy the default menu option
This commit is contained in:
parent
42bb460ef4
commit
e12d1c64b4
3 changed files with 1 additions and 37 deletions
|
|
@ -1,35 +0,0 @@
|
|||
import { HStack } from '../elements/LayoutPrimitives'
|
||||
import { UserBasicData } from '../../lib/networking/queries/useGetViewerQuery'
|
||||
import { DEFAULT_HEADER_HEIGHT } from '../templates/homeFeed/HeaderSpacer'
|
||||
import { LogoBox } from '../elements/LogoBox'
|
||||
|
||||
type HeaderProps = {
|
||||
user?: UserBasicData
|
||||
}
|
||||
|
||||
export function SettingsHeader(props: HeaderProps): JSX.Element {
|
||||
return (
|
||||
<nav>
|
||||
<HStack
|
||||
alignment="center"
|
||||
distribution="start"
|
||||
css={{
|
||||
top: '0',
|
||||
left: '0',
|
||||
zIndex: 1,
|
||||
display: 'flex',
|
||||
position: 'fixed',
|
||||
width: '100%',
|
||||
pr: '25px',
|
||||
height: DEFAULT_HEADER_HEIGHT,
|
||||
'@mdDown': {
|
||||
pr: '15px',
|
||||
},
|
||||
bg: '$thBackground',
|
||||
}}
|
||||
>
|
||||
<LogoBox />
|
||||
</HStack>
|
||||
</nav>
|
||||
)
|
||||
}
|
||||
|
|
@ -47,7 +47,6 @@ export function SettingsLayout(props: SettingsLayoutProps): JSX.Element {
|
|||
css={{ width: '100%', height: '100%', minHeight: '100vh' }}
|
||||
>
|
||||
<PageMetaData path="settings" title="Settings" />
|
||||
<SettingsHeader user={viewerData?.me} />
|
||||
<VStack css={{ width: '100%', height: '100%' }}>
|
||||
<Box
|
||||
css={{
|
||||
|
|
|
|||
|
|
@ -936,7 +936,7 @@ function HomeFeedGrid(props: HomeFeedContentProps): JSX.Element {
|
|||
})
|
||||
const [navMenuStyle] = usePersistedState<'legacy' | 'shortcuts'>({
|
||||
key: 'library-nav-menu-style',
|
||||
initialValue: 'shortcuts',
|
||||
initialValue: 'legacy',
|
||||
})
|
||||
|
||||
const updateLayout = useCallback(
|
||||
|
|
|
|||
Loading…
Reference in a new issue