Skip to content

Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.

update sidebar and header links to point to the dashboard

Khuram Niazd570409c9d0a
diff --git a/src/components/Header.tsx b/src/components/Header.tsx
index ae4d1d1..cf97854 100644
--- a/src/components/Header.tsx
+++ b/src/components/Header.tsx
@@ -32,7 +32,7 @@ async function Header() {
<nav className="grid gap-6 text-lg font-medium">
<SheetClose asChild>
<Link
- href="/"
+ href="/dashboard"
className="group flex h-10 w-10 shrink-0 items-center justify-center gap-2 rounded-full bg-primary text-lg font-semibold text-primary-foreground md:text-base"
>
<Briefcase className="h-5 w-5 transition-all group-hover:scale-110" />
diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx
index 5f3dbe4..926147a 100644
--- a/src/components/Sidebar.tsx
+++ b/src/components/Sidebar.tsx
@@ -12,6 +12,7 @@ import { cn } from "@/lib/utils";
function Sidebar() {
const path = usePathname();
const { expanded } = useSidebar();
+ const isOnDashboard = path === "/dashboard";
return (
<TooltipProvider delayDuration={300}>
@@ -27,7 +28,11 @@ function Sidebar() {
<div className="flex h-14 shrink-0 items-center overflow-hidden sm:mt-2">
<div className="flex w-14 shrink-0 items-center justify-center">
<Link
- href="/"
+ href="/dashboard"
+ aria-current={isOnDashboard ? "page" : undefined}
+ onClick={(e) => {
+ if (isOnDashboard) e.preventDefault();
+ }}
className="group flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-primary text-primary-foreground md:h-8 md:w-8"
>
<Briefcase className="h-4 w-4 transition-transform group-hover:scale-110" />