Skip to content

Commit

Permalink
Merge branch '473-resolve-the-dynamic-title-glitch-in-the-watcher-app…
Browse files Browse the repository at this point in the history
…' into 'dev'

Resolve "Resolve the dynamic title glitch in the Watcher app"

Closes #473

See merge request ergo/rosen-bridge/ui!394
  • Loading branch information
vorujack committed Dec 23, 2024
2 parents 51e3066 + c98d701 commit 0d101cf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/itchy-socks-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rosen-bridge/watcher-app': patch
---

Resolve the dynamic title glitch that occurs when navigating between pages
2 changes: 2 additions & 0 deletions apps/watcher/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand Down
5 changes: 0 additions & 5 deletions apps/watcher/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -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 (
/**
Expand Down

0 comments on commit 0d101cf

Please sign in to comment.