Skip to content

Commit ab9fe8c

Browse files
committed
fix: update navigation paths in Sidebar and useAuth hooks
- Changed Sidebar navigation link to redirect users to the dashboard instead of the manage page based on user authentication status. - Updated useAuth hook to navigate to the manage page after successful sign-in instead of onboarding.
1 parent 09bd655 commit ab9fe8c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/Layout/Sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const Sidebar = ({ navs }: SidebarProps) => {
7676

7777
<div className="w-full flex items-center gap-3">
7878
<Link
79-
to={user ? "/manage" : "/auth"}
79+
to={user ? "/dashboard" : "/auth"}
8080
className={`flex items-center gap-3 flex-grow ${isCollapsed ? "justify-center" : ""}`}
8181
>
8282
{user?.user_metadata.avatar_url ? (

src/hooks/useAuth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export const useAuth = () => {
9999
);
100100
// Navigate to onboarding after successful sign in
101101
if (event === "SIGNED_IN") {
102-
navigate("/onboarding", { replace: true });
102+
navigate("/manage", { replace: true });
103103
}
104104
break;
105105
case "SIGNED_OUT":

0 commit comments

Comments
 (0)