feat(ui): restore portfolio status next to logout

This commit is contained in:
u1
2026-01-06 15:14:59 +01:00
parent 1b0820f273
commit 77122e0428
4 changed files with 29 additions and 7 deletions

View File

@@ -16,9 +16,10 @@ type Props = {
active?: NavId;
onSelect?: (id: NavId) => void;
rightSlot?: ReactNode;
rightEndSlot?: ReactNode;
};
export default function TopNav({ active = 'trade', onSelect, rightSlot }: Props) {
export default function TopNav({ active = 'trade', onSelect, rightSlot, rightEndSlot }: Props) {
return (
<header className="topNav">
<div className="topNav__left">
@@ -55,8 +56,8 @@ export default function TopNav({ active = 'trade', onSelect, rightSlot }: Props)
</div>
</>
)}
{rightEndSlot}
</div>
</header>
);
}