better admin page/list link
This commit is contained in:
17
src/features/admin/components/admin-page.tsx
Normal file
17
src/features/admin/components/admin-page.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Title, List, Divider } from "@mantine/core";
|
||||
import ListLink from "@/components/list-link";
|
||||
import Page from "@/components/page";
|
||||
import { TrophyIcon } from "@phosphor-icons/react";
|
||||
|
||||
const AdminPage = () => {
|
||||
return (
|
||||
<Page noPadding>
|
||||
<Title pl='sm' order={2} mb="md">Admin</Title>
|
||||
<List>
|
||||
<ListLink label="Manage Tournaments" Icon={TrophyIcon} to="/admin/tournaments" />
|
||||
</List>
|
||||
</Page>
|
||||
);
|
||||
};
|
||||
|
||||
export default AdminPage;
|
||||
@@ -1,3 +1,7 @@
|
||||
import { Logger } from "@/lib/logger";
|
||||
|
||||
export const logger = new Logger('Admin');
|
||||
export const logger = new Logger('Admin');
|
||||
|
||||
export { default as CreateTournament } from './components/create-tournament';
|
||||
export { default as EditTournament } from './components/edit-tournament';
|
||||
export { default as AdminPage } from './components/admin-page';
|
||||
Reference in New Issue
Block a user