feat: move share index to public route

This commit is contained in:
2026-08-16 02:56:06 +07:00 Unverified
parent 44ae9d5848
commit 6b162c6eff
4 changed files with 189 additions and 193 deletions
+7 -1
View File
@@ -1,7 +1,7 @@
import type { Metadata } from "next";
import Link from "next/link";
import { getServerSession } from "next-auth";
import { ArrowLeft, Plus } from "lucide-react";
import { ArrowLeft, List, Plus } from "lucide-react";
import { DropdownMenuAvatar } from "@/components/avatar";
import { Button } from "@/components/ui/button";
import { ThemeToggle } from "@/components/theme-toggle";
@@ -36,6 +36,12 @@ export default async function ShareLayout({ children }: { children: React.ReactN
</Link>
</div>
<div className="flex items-center gap-2">
<Button variant="ghost" size="sm" asChild>
<Link href="/share/all">
<List data-icon="inline-start" />
ทั้งหมด
</Link>
</Button>
<Button variant="outline" size="sm" asChild>
<Link href="/share">
<Plus data-icon="inline-start" />