Skip to content

Commit cd5feb3

Browse files
committed
added 'empty' message to shop when nothing is there
1 parent a5e81f3 commit cd5feb3

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

components/shop/shop-content.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,17 @@ export function ShopContent() {
132132

133133
{error ? <p className="mb-4 text-sm text-red-500">{error}</p> : null}
134134

135+
{!error && coins !== null && groupedItems.length === 0 ? (
136+
<Card>
137+
<CardContent className="pt-6">
138+
<p className="text-sm text-muted-foreground">
139+
Nothing in the shop right now. Keep completing habits and daily
140+
check-ins to earn points for when new styles arrive.
141+
</p>
142+
</CardContent>
143+
</Card>
144+
) : null}
145+
135146
<div className="grid gap-6">
136147
{groupedItems.map((group) => (
137148
<section key={group.layerId} className="grid gap-3">

0 commit comments

Comments
 (0)