Skip to content

Commit

Permalink
Merge pull request #122 from FleetAdmiralJakob/fix-game-overview
Browse files Browse the repository at this point in the history
fix: removed a false hint on the /play page
  • Loading branch information
delasy authored Oct 24, 2024
2 parents cb1aa49 + 6eaa47e commit 7699d6d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion app/play/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default function PlayPage() {
</ToggleGroup>
</Authenticated>

{filteredMaps.length === 0 && (
{filteredMaps.length === 0 && filter === "unbeaten" && (
<div className="py-8">
<div className="flex flex-col items-center gap-4">
<div className="flex flex-col items-center gap-2 text-center">
Expand All @@ -142,6 +142,20 @@ export default function PlayPage() {
</div>
)}

{filteredMaps.length === 0 && filter === "beaten" && (
<div className="py-8">
<div className="flex flex-col items-center gap-4">
<div className="flex flex-col items-center gap-2 text-center">
<h2 className="text-xl/snug">Oh no!</h2>
<p className="text-base/snug">
You haven&apos;t completed as single map, what about starting
with some easy maps?
</p>
</div>
</div>
</div>
)}

<div className="grid grid-cols-1 gap-8 md:grid-cols-2 lg:grid-cols-3">
{filteredMaps.map((map) => (
<Card
Expand Down

0 comments on commit 7699d6d

Please sign in to comment.