significant refactor
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
import { Box, Divider, Text } from "@mantine/core";
|
||||
import { Box, Text } from "@mantine/core";
|
||||
import Header from "./header";
|
||||
import TeamList from "@/features/teams/components/team-list";
|
||||
import SwipeableTabs from "@/components/swipeable-tabs";
|
||||
import { Tournament } from "../../types";
|
||||
import { PreviewBracket } from "@/features/bracket/components/preview";
|
||||
import { useTournament } from "../../queries";
|
||||
|
||||
interface ProfileProps {
|
||||
tournament: Tournament;
|
||||
id: string;
|
||||
}
|
||||
|
||||
const Profile = ({ tournament }: ProfileProps) => {
|
||||
const Profile = ({ id }: ProfileProps) => {
|
||||
const { data: tournament } = useTournament(id);
|
||||
if (!tournament) return null;
|
||||
|
||||
const tabs = [
|
||||
{
|
||||
label: "Overview",
|
||||
|
||||
Reference in New Issue
Block a user