mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix the favicon imports
This commit is contained in:
parent
da767bd55a
commit
fbcf24a9d1
10 changed files with 13 additions and 14 deletions
|
|
@ -11,8 +11,10 @@ import { logoutMutation } from '../../lib/networking/mutations/logoutMutation'
|
|||
import { useState } from 'react'
|
||||
import { ConfirmationModal } from '../patterns/ConfirmationModal'
|
||||
import { KeyboardShortcutListModal } from './KeyboardShortcutListModal'
|
||||
import { PageMetaData } from '../patterns/PageMetaData'
|
||||
|
||||
type SettingsLayoutProps = {
|
||||
title?: string
|
||||
children: React.ReactNode
|
||||
}
|
||||
|
||||
|
|
@ -41,6 +43,7 @@ export function SettingsLayout(props: SettingsLayoutProps): JSX.Element {
|
|||
|
||||
return (
|
||||
<>
|
||||
<PageMetaData path='settings' title='Settings' />
|
||||
<PrimaryHeader
|
||||
user={viewerData?.me}
|
||||
isFixedPosition={false}
|
||||
|
|
|
|||
|
|
@ -44,12 +44,12 @@ const moduleExports = {
|
|||
permanent: true,
|
||||
},
|
||||
{
|
||||
source: '/static/icons/default/favicon-dark.ico',
|
||||
source: '/static/icons/favicon-dark.ico',
|
||||
destination: '/favicon-dark.ico',
|
||||
permanent: true,
|
||||
},
|
||||
{
|
||||
source: '/static/icons/default/favicon-light.ico',
|
||||
source: '/static/icons/favicon-light.ico',
|
||||
destination: '/favicon.ico',
|
||||
permanent: true,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ export default function Custom404(): JSX.Element {
|
|||
<Head>
|
||||
<title>Page Not Found</title>
|
||||
</Head>
|
||||
<SettingsLayout>
|
||||
<SettingsLayout title="Page could not be found">
|
||||
<ErrorLayout statusCode={404} message="This page could not be found." />
|
||||
</SettingsLayout>
|
||||
</>
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ export default function Custom500(): JSX.Element {
|
|||
<Head>
|
||||
<title>An unknown error occurred.</title>
|
||||
</Head>
|
||||
<SettingsLayout>
|
||||
<SettingsLayout title="An unknown error occurred">
|
||||
<ErrorLayout statusCode={404} message="An unknown error occurred." />
|
||||
</SettingsLayout>
|
||||
</>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ export default function Privacy(): JSX.Element {
|
|||
return <PrivacyPolicy />
|
||||
} else {
|
||||
return (
|
||||
<SettingsLayout>
|
||||
<SettingsLayout title="Privacy Policy">
|
||||
<PrivacyPolicy />
|
||||
</SettingsLayout>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import { VStack } from '../../../components/elements/LayoutPrimitives'
|
|||
|
||||
export default function Extensions(): JSX.Element {
|
||||
return (
|
||||
<SettingsLayout>
|
||||
<SettingsLayout title="Extensions">
|
||||
<VStack distribution="center" alignment="center" css={{ width: '100%' }}>
|
||||
<ExtensionInstallHelp />
|
||||
</VStack>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import { Box, VStack } from '../../../components/elements/LayoutPrimitives'
|
|||
|
||||
export default function Installation(): JSX.Element {
|
||||
return (
|
||||
<SettingsLayout>
|
||||
<SettingsLayout title="Installation">
|
||||
<MobileInstallHelp />
|
||||
<Box css={{ m: '32px' }} />
|
||||
<ExtensionInstallHelp />
|
||||
|
|
|
|||
|
|
@ -6,10 +6,8 @@ import { VStack } from '../../../components/elements/LayoutPrimitives'
|
|||
|
||||
export default function Mobile(): JSX.Element {
|
||||
return (
|
||||
<SettingsLayout>
|
||||
{/* <VStack distribution="center" alignment="center" css={{ width: '100%', height: '100%' }}> */}
|
||||
<MobileInstallHelp />
|
||||
{/* </VStack> */}
|
||||
<SettingsLayout title="Mobile Installation">
|
||||
<MobileInstallHelp />
|
||||
</SettingsLayout>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ export default function Terms(): JSX.Element {
|
|||
return <TermsAndConditions />
|
||||
} else {
|
||||
return (
|
||||
<SettingsLayout>
|
||||
<SettingsLayout title="Terms and Conditions">
|
||||
<TermsAndConditions />
|
||||
</SettingsLayout>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -33,8 +33,6 @@
|
|||
const initialCacheItems = [
|
||||
homeCache,
|
||||
'/manifest.webmanifest',
|
||||
'/favicon.ico',
|
||||
'/favicon-32.png',
|
||||
'/pwa-36.png',
|
||||
'/pwa-48.png',
|
||||
'/pwa-72.png',
|
||||
|
|
|
|||
Loading…
Reference in a new issue