mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-01 03:09:34 +00:00
Added Very Basic Liveblocks Implimentation and README Updates
This commit is contained in:
parent
5a76ac0611
commit
0190fad583
12 changed files with 336 additions and 15 deletions
|
@ -1,8 +1,15 @@
|
|||
import { auth } from '@clerk/nextjs/server';
|
||||
import { notFound, redirect } from 'next/navigation';
|
||||
import {
|
||||
LiveblocksProvider,
|
||||
RoomProvider,
|
||||
ClientSideSuspense,
|
||||
} from '@liveblocks/react/suspense';
|
||||
|
||||
import { db } from '@/lib/db';
|
||||
import { BoardNavbar } from './_components/board-navbar';
|
||||
import { Skeleton } from '@/components/ui/skeleton';
|
||||
import { BoardLiveblocks } from './_components/board-liveblocks';
|
||||
|
||||
export async function generateMetadata(props: {
|
||||
params: Promise<{ boardId: string }>;
|
||||
|
@ -53,7 +60,9 @@ const BoardIdLayout = async (props: {
|
|||
>
|
||||
<BoardNavbar data={board} />
|
||||
<div className='absolute inset-0 bg-black/10' />
|
||||
<main className='relative h-full pt-28'>{children}</main>
|
||||
<main className='relative h-full pt-28'>
|
||||
<BoardLiveblocks boardId={params.boardId}>{children}</BoardLiveblocks>
|
||||
</main>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue