🐛 Fix page title error
This commit is contained in:
parent
cdf34ee9a1
commit
bf43234eae
@ -53,7 +53,7 @@ export function CapDrawer({ width, open, onClose }: { width: number; open: boole
|
|||||||
href: '/terms',
|
href: '/terms',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'SN Console',
|
title: 'Solar Console',
|
||||||
href: '/console',
|
href: '/console',
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
@ -55,7 +55,7 @@ export function ConsoleLayout({ children }: { children: JSX.Element }) {
|
|||||||
|
|
||||||
export function getConsoleStaticProps(original: any) {
|
export function getConsoleStaticProps(original: any) {
|
||||||
if (original.props.title) {
|
if (original.props.title) {
|
||||||
original.props.title = 'Console | ' + original.props.title
|
original.props.title = 'Solar Console | ' + original.props.title
|
||||||
}
|
}
|
||||||
original.props.showAppBar = false
|
original.props.showAppBar = false
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ export default function App({ Component, pageProps }: AppProps) {
|
|||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
const title = pageProps.title
|
const title = pageProps.title
|
||||||
? pageProps.startsWith('Solar Network Console')
|
? pageProps.title.startsWith('Solar Console')
|
||||||
? pageProps.title
|
? pageProps.title
|
||||||
: `${pageProps.title} | Solsynth LLC`
|
: `${pageProps.title} | Solsynth LLC`
|
||||||
: 'Solsynth LLC'
|
: 'Solsynth LLC'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user