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