Skip to content

Commit b127eb3

Browse files
committed
refactor(web): simplify breadcrumb component and update organization navigation path
1 parent ac90aa7 commit b127eb3

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

apps/web/src/components/app-header-breadcrumb.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function AppHeaderBreadcrumb() {
2121
}
2222

2323
return (
24-
<Breadcrumb className="ml-4 hidden md:flex">
24+
<Breadcrumb className="hidden md:flex">
2525
<BreadcrumbList className="flex-nowrap">
2626
{breadcrumbs.map((item, index) => {
2727
const isLast = index === breadcrumbs.length - 1;

apps/web/src/components/app-header.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { Link } from "react-router";
33

44
import { OrganizationSwitcher } from "@/components/organization-switcher";
55
import { UserProfile } from "@/components/user-profile";
6-
import { useOrgUrl } from "@/hooks/use-org-url";
76

87
import { AppHeaderBreadcrumb } from "./app-header-breadcrumb";
98
import { useAuth } from "./auth-context";
@@ -12,7 +11,6 @@ import { ThemeToggle } from "./theme-toggle";
1211

1312
export function AppHeader() {
1413
const { isAuthenticated } = useAuth();
15-
const { getOrgUrl } = useOrgUrl();
1614

1715
const navLinkClasses =
1816
"px-2.5 py-1 text-sm rounded-md hover:bg-neutral-200/50 dark:hover:bg-neutral-700/50 transition-colors";
@@ -33,7 +31,7 @@ export function AppHeader() {
3331
{isAuthenticated ? (
3432
<>
3533
<NavLink
36-
to={getOrgUrl("dashboard")}
34+
to={"/org"}
3735
className={navLinkClasses}
3836
activeClassName={activeNavLinkClasses}
3937
>

0 commit comments

Comments
 (0)