Skip to content

Commit

Permalink
hashtag header
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalmi committed Dec 4, 2023
1 parent 5f2cc05 commit 2920c2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/app/src/Pages/Layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ export function Header() {
} else if (nostrLink.type === NostrPrefix.PublicKey || nostrLink.type === NostrPrefix.Profile) {
title = <DisplayName pubkey={bech32ToHex(pageName)} />;
}
} else if (location.pathname.startsWith("/t/")) {
title = <span>#{location.pathname.split("/").slice(-1)}</span>;
}

return (
Expand Down

0 comments on commit 2920c2a

Please sign in to comment.