Skip to content

Commit

Permalink
Added a redirect link to dashboard on settings page. (Codehagen#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
piyusharmap authored Mar 3, 2024
1 parent 12281b2 commit dccec03
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion apps/www/app/(dashboard)/dashboard/settings/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { Metadata } from "next";
import Image from "next/image";
import Link from "next/link";
import { ChevronLeft } from "lucide-react";

import { Separator } from "@/components/ui/separator";
import SettingSidebarNav from "@/components/layout/settings-sidebar-nav";
Expand Down Expand Up @@ -47,7 +49,14 @@ interface SettingsLayoutProps {
export default function SettingsLayout({ children }: SettingsLayoutProps) {
return (
<>
<div className="hidden space-y-6 p-10 pb-16 md:block">
<div className="hidden space-y-6 px-10 py-4 pb-16 md:block">
<Link
href="/dashboard"
className="group -mx-2 flex w-fit items-center gap-1 opacity-75 hover:opacity-100"
>
<ChevronLeft className="ml-1 h-4 w-4 transition-all group-hover:ml-0 group-hover:mr-1" />{" "}
Dashboard
</Link>
<div className="space-y-0.5">
<h2 className="text-2xl font-bold tracking-tight">Settings</h2>
<p className="text-muted-foreground">
Expand Down

0 comments on commit dccec03

Please sign in to comment.