diff --git a/.changeset/itchy-socks-exist.md b/.changeset/itchy-socks-exist.md new file mode 100644 index 00000000..40981f73 --- /dev/null +++ b/.changeset/itchy-socks-exist.md @@ -0,0 +1,5 @@ +--- +'@rosen-bridge/watcher-app': patch +--- + +Resolve the dynamic title glitch that occurs when navigating between pages diff --git a/apps/watcher/app/App.tsx b/apps/watcher/app/App.tsx index 6df45561..92d74451 100644 --- a/apps/watcher/app/App.tsx +++ b/apps/watcher/app/App.tsx @@ -26,6 +26,8 @@ export const App = ({ children }: { children?: ReactNode }) => { * local:ergo/rosen-bridge/ui#408 */ useEffect(() => { + document.title = `Watcher`; + if (!info) return; document.title = `[${upperFirst(info.network)}] Watcher`; diff --git a/apps/watcher/app/layout.tsx b/apps/watcher/app/layout.tsx index 628afa40..224d2c27 100644 --- a/apps/watcher/app/layout.tsx +++ b/apps/watcher/app/layout.tsx @@ -1,12 +1,7 @@ -import { Metadata } from 'next'; import React from 'react'; import { App } from './App'; -export const metadata: Metadata = { - title: 'Watcher', -}; - const RootLayout = ({ children }: { children: React.ReactNode }) => { return ( /**