diff --git a/src/pages/manage/boards/index.tsx b/src/pages/manage/boards/index.tsx index bdf7c054c..7d6c5831c 100644 --- a/src/pages/manage/boards/index.tsx +++ b/src/pages/manage/boards/index.tsx @@ -8,12 +8,19 @@ import { LoadingOverlay, Menu, SimpleGrid, + Stack, Text, Title, } from '@mantine/core'; import { useListState } from '@mantine/hooks'; import { modals } from '@mantine/modals'; -import { IconDotsVertical, IconFolderFilled, IconPlus, IconTrash } from '@tabler/icons-react'; +import { + IconApps, + IconDotsVertical, + IconFolderFilled, + IconPlus, + IconTrash, +} from '@tabler/icons-react'; import Link from 'next/link'; import { ManageLayout } from '~/components/layout/Templates/ManageLayout'; import { CommonHeader } from '~/components/layout/common-header'; @@ -21,7 +28,7 @@ import { sleep } from '~/tools/client/time'; import { api } from '~/utils/api'; const BoardsPage = () => { - const { data } = api.config.all.useQuery(); + const { data } = api.boards.all.useQuery(); const [deletingDashboards, { append, filter }] = useListState([]); @@ -60,10 +67,10 @@ const BoardsPage = () => { > {data.map((board, index) => ( - + - {board} + {board.name} @@ -72,10 +79,31 @@ const BoardsPage = () => { - - With Fjord Tours you can explore more of the magical fjord landscapes with tours and - activities on and around the fjords of Norway - + + + + + Apps + + {board.countApps} + + + + + + Widgets + + {board.countWidgets} + + + + + + Categories + + {board.countCategories} + +