match list
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import { Box, Text } from "@mantine/core";
|
||||
import { Box } from "@mantine/core";
|
||||
import Header from "./header";
|
||||
import { Player } from "@/features/players/types";
|
||||
import SwipeableTabs from "@/components/swipeable-tabs";
|
||||
import { usePlayer } from "../../queries";
|
||||
import { usePlayer, usePlayerMatches } from "../../queries";
|
||||
import TeamList from "@/features/teams/components/team-list";
|
||||
import StatsOverview from "../stats-overview";
|
||||
import MatchList from "@/features/matches/components/match-list";
|
||||
|
||||
interface ProfileProps {
|
||||
id: string;
|
||||
@@ -12,6 +13,8 @@ interface ProfileProps {
|
||||
|
||||
const Profile = ({ id }: ProfileProps) => {
|
||||
const { data: player } = usePlayer(id);
|
||||
const { data: matches } = usePlayerMatches(id);
|
||||
|
||||
const tabs = [
|
||||
{
|
||||
label: "Overview",
|
||||
@@ -19,7 +22,7 @@ const Profile = ({ id }: ProfileProps) => {
|
||||
},
|
||||
{
|
||||
label: "Matches",
|
||||
content: <Text p="md">Matches feed will go here</Text>,
|
||||
content: <Box p="md"><MatchList matches={matches || []} /></Box>,
|
||||
},
|
||||
{
|
||||
label: "Teams",
|
||||
|
||||
Reference in New Issue
Block a user