the button should appear no matter what tab you are looking at

This commit is contained in:
Leon Serfaty G
2025-07-18 04:17:40 +00:00
parent 0d8d68685d
commit 0f08d62ef8
2 changed files with 10 additions and 7 deletions
+10 -1
View File
@@ -24,7 +24,8 @@ import {
Code2, Code2,
Mails, Mails,
Send, Send,
ClipboardList ClipboardList,
ExternalLink
} from "lucide-react" } from "lucide-react"
import { Button } from "@/components/ui/button"; import { Button } from "@/components/ui/button";
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
@@ -118,6 +119,14 @@ function AdminLayout({
</Sidebar> </Sidebar>
<SidebarInset> <SidebarInset>
<div className="p-4 sm:p-6 lg:p-8"> <div className="p-4 sm:p-6 lg:p-8">
<div className="flex justify-end mb-4">
<Link href="/" passHref>
<Button variant="outline">
<ExternalLink className="mr-2 h-4 w-4" />
Go to Frontend
</Button>
</Link>
</div>
{children} {children}
</div> </div>
</SidebarInset> </SidebarInset>
-6
View File
@@ -32,12 +32,6 @@ export default async function LeadsPage() {
A list of all the users who have requested an estimate. A list of all the users who have requested an estimate.
</p> </p>
</div> </div>
<Link href="/" passHref>
<Button variant="outline">
<ExternalLink className="mr-2 h-4 w-4" />
Go to Frontend
</Button>
</Link>
</div> </div>
<Card> <Card>
<CardHeader> <CardHeader>