Games page working
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import TabGroup, { Tab } from "@/components/tab/TabGroup";
|
import TabGroup, { Tab } from "@/components/tab/TabGroup";
|
||||||
import AdminAccountsTab from "@/ui/account/AdminAccountsTab";
|
import AdminAccountsTab from "@/ui/account/AdminAccountsTab";
|
||||||
import AdminGamesTab from "@/ui/game/AdminGamesTab";
|
import AllGamesDisplay from "@/ui/game/AllGamesDisplay";
|
||||||
import AdminRaidGroupTab from "@/ui/raidGroup/AdminRaidGroupTab";
|
import AdminRaidGroupTab from "@/ui/raidGroup/AdminRaidGroupTab";
|
||||||
|
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ export default function AdminPage(){
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
tabHeader: "Games",
|
tabHeader: "Games",
|
||||||
tabContent: <AdminGamesTab/>
|
tabContent: <AllGamesDisplay/>
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
tabHeader: "Raid Groups",
|
tabHeader: "Raid Groups",
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
|
import AllGamesDisplay from "@/ui/game/AllGamesDisplay";
|
||||||
|
|
||||||
|
|
||||||
export default function GamesPage(){
|
export default function GamesPage(){
|
||||||
//TODO:
|
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<main>
|
||||||
Games Page
|
<AllGamesDisplay/>
|
||||||
</div>
|
</main>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { GamesLoader } from "./GamesLoader";
|
|||||||
import GameModal from "./modals/GameModal";
|
import GameModal from "./modals/GameModal";
|
||||||
|
|
||||||
|
|
||||||
export default function AdminGamesTab(){
|
export default function AllGamesDisplay(){
|
||||||
const [ displayCreateGameModal, setDisplayCreateGameModal ] = useState(false);
|
const [ displayCreateGameModal, setDisplayCreateGameModal ] = useState(false);
|
||||||
const [ page, setPage ] = useState(1);
|
const [ page, setPage ] = useState(1);
|
||||||
const [ totalPages, setTotalPages ] = useState(1);
|
const [ totalPages, setTotalPages ] = useState(1);
|
||||||
@@ -2,6 +2,7 @@ import { ButtonProps } from "@/components/button/Button";
|
|||||||
import Table from "@/components/table/Table";
|
import Table from "@/components/table/Table";
|
||||||
import { Game } from "@/interface/Game";
|
import { Game } from "@/interface/Game";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
import { Link } from "react-router";
|
||||||
import GameAdminButtons from "./GameAdminButtons";
|
import GameAdminButtons from "./GameAdminButtons";
|
||||||
import DeleteGameModal from "./modals/DeleteGameModal";
|
import DeleteGameModal from "./modals/DeleteGameModal";
|
||||||
import GameModal from "./modals/GameModal";
|
import GameModal from "./modals/GameModal";
|
||||||
@@ -55,9 +56,11 @@ export default function GamesList({
|
|||||||
}
|
}
|
||||||
|
|
||||||
</div>,
|
</div>,
|
||||||
<div>
|
<Link
|
||||||
|
to={`/game/${game.gameId}`}
|
||||||
|
>
|
||||||
{game.gameName}
|
{game.gameName}
|
||||||
</div>,
|
</Link>,
|
||||||
<div
|
<div
|
||||||
className="flex flex-row items-center justify-center gap-2 pl-16"
|
className="flex flex-row items-center justify-center gap-2 pl-16"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user