mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-06 22:12:12 +02:00
Merge pull request #986 from JoeMakuta/chore/chat-page-client-to-server
fix: convert public chat page to server component
This commit is contained in:
commit
959999f380
1 changed files with 7 additions and 7 deletions
|
|
@ -1,11 +1,11 @@
|
||||||
"use client";
|
|
||||||
|
|
||||||
import { useParams } from "next/navigation";
|
|
||||||
import { PublicChatView } from "@/components/public-chat/public-chat-view";
|
import { PublicChatView } from "@/components/public-chat/public-chat-view";
|
||||||
|
|
||||||
export default function PublicChatPage() {
|
export default async function PublicChatPage({
|
||||||
const params = useParams();
|
params,
|
||||||
const token = params.token as string;
|
}: {
|
||||||
|
params: Promise<{ token: string }>;
|
||||||
|
}) {
|
||||||
|
const { token } = await params;
|
||||||
|
|
||||||
return <PublicChatView shareToken={token} />;
|
return <PublicChatView shareToken={token} />;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue