feat : use only thai
This commit is contained in:
@@ -32,10 +32,10 @@ export default async function GuideCommentPage({
|
||||
return (
|
||||
<div className="min-h-svh">
|
||||
<AdminHeader />
|
||||
<main lang="en" className="mx-auto flex w-full max-w-7xl flex-col gap-6 px-4 pb-4 sm:px-6 sm:pb-6 lg:px-8 lg:pb-8">
|
||||
<main lang="th" className="mx-auto flex w-full max-w-7xl flex-col gap-6 px-4 pb-4 sm:px-6 sm:pb-6 lg:px-8 lg:pb-8">
|
||||
<div className="flex flex-col">
|
||||
<header className="flex items-center gap-4">
|
||||
<Button variant="ghost" size="icon" render={<Link href="/admin" />} nativeButton={false} aria-label="Back to dashboard">
|
||||
<Button variant="ghost" size="icon" render={<Link href="/admin" />} nativeButton={false} aria-label="กลับหน้าภาพรวม">
|
||||
<ArrowLeftIcon />
|
||||
</Button>
|
||||
<div className="relative size-16 shrink-0 overflow-hidden rounded-lg border">
|
||||
@@ -43,7 +43,7 @@ export default async function GuideCommentPage({
|
||||
</div>
|
||||
<div className="min-w-0">
|
||||
<p className="text-sm text-muted-foreground">{guide.name}</p>
|
||||
<h1 className="font-heading text-3xl font-semibold">Comment</h1>
|
||||
<h1 className="font-heading text-3xl font-semibold">ความคิดเห็น</h1>
|
||||
</div>
|
||||
</header>
|
||||
<GuideSectionNav guideId={guide.id} characterKey={guide.characterKey} current="comment" extras={extras} />
|
||||
|
||||
@@ -12,8 +12,8 @@ export default async function AdminCommentsPage({ searchParams }: { searchParams
|
||||
const initialTarget = query.target;
|
||||
const initialComment = initialTarget && query.comment && /^[0-9a-f-]{36}$/i.test(query.comment) ? query.comment : undefined;
|
||||
const [initial, targets] = await Promise.all([listComments({ viewer, inbox: true, grouped: true, target: initialTarget }), listCommentTargets()]);
|
||||
return <><AdminHeader /><main lang="en" className="mx-auto flex w-full max-w-7xl flex-col gap-6 p-4 sm:p-6 lg:p-8">
|
||||
<header><h1 className="font-heading text-3xl font-semibold">Comments</h1><p className="mt-2 text-muted-foreground">Reply to and manage comments from every guide</p></header>
|
||||
return <><AdminHeader /><main lang="th" className="mx-auto flex w-full max-w-7xl flex-col gap-6 p-4 sm:p-6 lg:p-8">
|
||||
<header><h1 className="font-heading text-3xl font-semibold">ความคิดเห็น</h1><p className="mt-2 text-muted-foreground">ตอบกลับและจัดการความคิดเห็นจากทุกไกด์และทุกรอบ Stygian</p></header>
|
||||
<AdminCommentInbox key={`${initialTarget ?? "all"}:${initialComment ?? ""}`} initialTarget={initialTarget} initialComment={initialComment} initial={initial} targets={targets} />
|
||||
</main></>;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { Suspense } from "react";
|
||||
|
||||
import { CommentLocaleProvider } from "@/components/comments/comment-locale";
|
||||
import { AdminUnreadCommentsProvider } from "@/components/comments/admin-unread-comments";
|
||||
import { TooltipProvider } from "@/components/ui/tooltip";
|
||||
|
||||
@@ -14,7 +13,7 @@ export default function AdminLayout({ children }: LayoutProps<"/admin">) {
|
||||
</main>
|
||||
}
|
||||
>
|
||||
<CommentLocaleProvider locale="en"><AdminUnreadCommentsProvider>{children}</AdminUnreadCommentsProvider></CommentLocaleProvider>
|
||||
<AdminUnreadCommentsProvider>{children}</AdminUnreadCommentsProvider>
|
||||
</Suspense>
|
||||
</TooltipProvider>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user