player h2h

This commit is contained in:
yohlo
2025-10-11 14:47:03 -05:00
parent 43972b6a06
commit d3379e54a4
11 changed files with 671 additions and 36 deletions

View File

@@ -13,7 +13,7 @@ import { XIcon } from "@phosphor-icons/react";
interface AvatarProps
extends Omit<MantineAvatarProps, "radius" | "color" | "size"> {
name: string;
name?: string;
size?: number;
radius?: string | number;
withBorder?: boolean;

View File

@@ -18,6 +18,7 @@ interface TabItem {
interface SwipeableTabsProps {
tabs: TabItem[];
defaultTab?: number;
mb?: string | number;
onTabChange?: (index: number, tab: TabItem) => void;
}
@@ -25,6 +26,7 @@ function SwipeableTabs({
tabs,
defaultTab = 0,
onTabChange,
mb,
}: SwipeableTabsProps) {
const router = useRouter();
const search = router.state.location.search as any;
@@ -144,7 +146,7 @@ function SwipeableTabs({
style={{
display: "flex",
paddingInline: "var(--mantine-spacing-md)",
marginBottom: "var(--mantine-spacing-md)",
marginBottom: mb !== undefined ? mb : "var(--mantine-spacing-md)",
zIndex: 100,
backgroundColor: "var(--mantine-color-body)",
}}