feat: extend schema with list and cards

This commit is contained in:
Henry
2023-11-07 21:39:11 +00:00
parent 1df15595f4
commit c7da56785e
5 changed files with 104 additions and 12 deletions

View File

@@ -1,3 +1,15 @@
export default function BoardPage() {
"use client";
import { api } from "~/trpc/react";
export default function BoardPage({ params }: { params: { id: string[] } }) {
const boardId = params.id[0];
if (!boardId) return <></>;
const { data } = api.board.byId.useQuery({ id: boardId });
console.log({ data });
return <></>;
}

View File

@@ -44,7 +44,7 @@ export default async function Layout(props: { children: React.ReactNode }) {
</div>
<div className="flex h-full w-full">
<nav className="flex w-64 flex-col justify-between border-r border-dark-600 px-5 py-5">
<nav className="flex w-72 flex-col justify-between border-r border-dark-600 px-5 py-5">
<div>
<ul role="list" className="-mx-2 my-6 space-y-1">
{navigation.map((item) => (