Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit f8596ef

Browse files
authored
Fixes empty screen on BABY staking (#1395)
1 parent 54e8375 commit f8596ef

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/ui/baby/layout.tsx

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,30 @@ export default function BabyLayout() {
8888
: []),
8989
];
9090

91+
const fallbackTabItems = [
92+
{
93+
id: "stake",
94+
label: "Stake",
95+
content: <StakingForm />,
96+
},
97+
];
98+
99+
const fallbackContent = (
100+
<Container
101+
as="main"
102+
className="flex flex-col gap-[3rem] pb-16 max-w-[760px] mx-auto flex-1"
103+
>
104+
<Tabs items={fallbackTabItems} defaultActiveTab="stake" />
105+
</Container>
106+
);
107+
91108
return (
92109
<StakingState>
93110
<ValidatorState>
94111
<DelegationState>
95112
<RewardState>
96113
<Content>
97-
<AuthGuard>
114+
<AuthGuard fallback={fallbackContent}>
98115
<Container
99116
as="main"
100117
className="flex flex-col gap-[3rem] pb-16 max-w-[760px] mx-auto flex-1"

0 commit comments

Comments
 (0)