move table to resources page
This commit is contained in:
@ -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 (
|
||||
<>
|
||||
<Head>
|
||||
@ -16,7 +12,7 @@ const Home: NextPage = () => {
|
||||
</Head>
|
||||
<main>
|
||||
<div className="my-6">
|
||||
<ResourceTable resources={query.data} />
|
||||
<p>Nothing yet</p>
|
||||
</div>
|
||||
</main>
|
||||
</>
|
||||
|
24
src/pages/resources/index.tsx
Normal file
24
src/pages/resources/index.tsx
Normal file
@ -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 (
|
||||
<>
|
||||
<Head>
|
||||
<title>ATR</title>
|
||||
<meta name="description" content="University of Iowa Center for Auditory Training Resources" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
</Head>
|
||||
<main>
|
||||
<div className="my-6">
|
||||
<ResourceTable resources={query.data} />
|
||||
</div>
|
||||
</main>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default Resources;
|
Reference in New Issue
Block a user