chore : remove preview alert
CI / Build immutable images and deploy (push) Canceled after 0s
CI / Verify (push) Canceled after 42s

This commit is contained in:
2026-10-15 00:40:58 +07:00 Unverified
parent 0ac983b1f4
commit b8fa9cb835
-8
View File
@@ -45,14 +45,6 @@ export function GuidePageShell({
<div className="flex min-h-svh flex-col bg-background">
<LiveRefresh endpoint={`/api/events/page/${guide.id}`} />
<SiteHeader editHref={`/admin/${guide.characterKey}`} guideId={guide.id} />
{preview ? (
<div className="mx-auto w-full max-w-7xl px-4 pt-4 sm:px-6 lg:px-8">
<Alert>
<AlertTitle>Preview</AlertTitle>
<AlertDescription>หน้านี้แสดงข้อมูลที่บันทึกล่าสุดและเปิดดูได้เฉพาะผู้ดูแล</AlertDescription>
</Alert>
</div>
) : null}
<div className="sticky top-0 z-40 bg-background/95 supports-backdrop-filter:backdrop-blur">
<div className="mx-auto flex min-h-12 w-full max-w-7xl items-center gap-3 px-4 sm:min-h-16 sm:px-6 lg:px-8">
<Button variant="ghost" size="icon" className="max-sm:size-11" render={<Link href={preview ? `/admin/${guide.characterKey}` : "/"} />} nativeButton={false} aria-label={preview ? "กลับหน้าแก้ไข" : "กลับหน้ารวม"}>