From 13e9c45f4de935f1dc1e7df4cc466f5681513270 Mon Sep 17 00:00:00 2001 From: Brandon Egger Date: Thu, 16 Mar 2023 18:18:12 -0500 Subject: [PATCH] move table to resources page --- src/components/Header.tsx | 2 +- src/pages/index.tsx | 6 +----- src/pages/resources/index.tsx | 24 ++++++++++++++++++++++++ 3 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 src/pages/resources/index.tsx diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 4bd7427..b2089be 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -30,7 +30,7 @@ const NavBar = () => {
  • diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 2d1e798..4f17496 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,12 +1,8 @@ import { type NextPage } from "next"; import Head from "next/head"; -import ResourceTable from "~/components/ResourceTable"; -import { api } from "~/utils/api"; const Home: NextPage = () => { - const query = api.auditoryResource.getAll.useQuery(); - return ( <> @@ -16,7 +12,7 @@ const Home: NextPage = () => {
    - +

    Nothing yet

    diff --git a/src/pages/resources/index.tsx b/src/pages/resources/index.tsx new file mode 100644 index 0000000..b295cec --- /dev/null +++ b/src/pages/resources/index.tsx @@ -0,0 +1,24 @@ +import Head from "next/head"; +import ResourceTable from "~/components/ResourceTable"; +import { api } from "~/utils/api"; + +const Resources = () => { + const query = api.auditoryResource.getAll.useQuery(); + + return ( + <> + + ATR + + + +
    +
    + +
    +
    + + ); +} + +export default Resources; \ No newline at end of file