From bf43234eaeb955b2a6f063bffd6ea1a7d62e8300 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 11 Jan 2025 15:31:01 +0800 Subject: [PATCH] :bug: Fix page title error --- src/components/CapDrawer.tsx | 2 +- src/components/layouts/ConsoleLayout.tsx | 2 +- src/pages/_app.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/CapDrawer.tsx b/src/components/CapDrawer.tsx index d24fafe..969f2fc 100644 --- a/src/components/CapDrawer.tsx +++ b/src/components/CapDrawer.tsx @@ -53,7 +53,7 @@ export function CapDrawer({ width, open, onClose }: { width: number; open: boole href: '/terms', }, { - title: 'SN Console', + title: 'Solar Console', href: '/console', }, ] diff --git a/src/components/layouts/ConsoleLayout.tsx b/src/components/layouts/ConsoleLayout.tsx index 594d3bd..1c51f53 100644 --- a/src/components/layouts/ConsoleLayout.tsx +++ b/src/components/layouts/ConsoleLayout.tsx @@ -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 diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 4f71f28..9ab22b2 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -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'