badge redesign again

This commit is contained in:
yohlo
2025-10-01 21:28:27 -05:00
parent 1f4f66f8c5
commit a376f98fe7
3 changed files with 62 additions and 78 deletions

View File

@@ -1,4 +1,4 @@
import { Box } from "@mantine/core";
import { Box, Stack, Text, Divider } from "@mantine/core";
import { Suspense } from "react";
import Header from "./header";
import SwipeableTabs from "@/components/swipeable-tabs";
@@ -21,14 +21,19 @@ const Profile = ({ id }: ProfileProps) => {
const tabs = [
{
label: "Overview",
content: (
<>
content: <>
<Stack px="md">
<Text size="md" fw={700}>Badges</Text>
<Suspense fallback={<BadgeShowcaseSkeleton />}>
<BadgeShowcase playerId={id} />
</Suspense>
</Stack>
<Divider my="md" />
<Stack>
<Text px="md" size="md" fw={700}>Statistics</Text>
<StatsOverview statsData={stats} isLoading={statsLoading} />
</>
),
</Stack>
</>,
},
{
label: "Matches",