Formated Files

This commit is contained in:
Ahmad 2024-02-15 20:49:19 -05:00
parent d5631b309a
commit e768d9181f
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
138 changed files with 1829 additions and 1851 deletions

View file

@ -1,8 +1,8 @@
import { auth } from "@clerk/nextjs";
import { redirect } from "next/navigation";
import { auth } from '@clerk/nextjs';
import { redirect } from 'next/navigation';
import { db } from "@/lib/db";
import { ListContainer } from "./_components/list-container";
import { db } from '@/lib/db';
import { ListContainer } from './_components/list-container';
interface BoardIdPageProps {
params: {
@ -14,7 +14,7 @@ const BoardIdPage = async ({ params }: BoardIdPageProps) => {
const { orgId } = auth();
if (!orgId) {
redirect("/select-org");
redirect('/select-org');
}
const lists = await db.list.findMany({
@ -27,20 +27,20 @@ const BoardIdPage = async ({ params }: BoardIdPageProps) => {
include: {
cards: {
orderBy: {
order: "asc",
order: 'asc',
},
},
},
orderBy: {
order: "asc",
order: 'asc',
},
});
return (
<div className="p-4 h-full overflow-x-auto">
<div className='h-full overflow-x-auto p-4'>
<ListContainer boardId={params.boardId} data={lists} />
</div>
)
);
};
export default BoardIdPage;