refactor: Extract SatsDisplay component and fix page IDs

- Extract SatsDisplay component to shared components directory
- Fix page IDs: rename 'admin-appointments' to 'admin-trades'
- Fix trades page using correct 'trades' page ID
This commit is contained in:
counterweight 2025-12-23 10:44:11 +01:00
parent ce8f5a1183
commit 4e6f38e4a1
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
5 changed files with 66 additions and 169 deletions

View file

@ -14,7 +14,7 @@ type PageId =
| "trades"
| "admin-invites"
| "admin-availability"
| "admin-appointments"
| "admin-trades"
| "admin-price-history";
interface HeaderProps {
@ -37,7 +37,7 @@ const REGULAR_NAV_ITEMS: NavItem[] = [
];
const ADMIN_NAV_ITEMS: NavItem[] = [
{ id: "admin-appointments", label: "Trades", href: "/admin/trades", adminOnly: true },
{ id: "admin-trades", label: "Trades", href: "/admin/trades", adminOnly: true },
{ id: "admin-availability", label: "Availability", href: "/admin/availability", adminOnly: true },
{ id: "admin-invites", label: "Invites", href: "/admin/invites", adminOnly: true },
{ id: "admin-price-history", label: "Prices", href: "/admin/price-history", adminOnly: true },