feat: move share index to public route
This commit is contained in:
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user