feat: moved org breadcrumbs to top level

This commit is contained in:
=
2025-07-02 01:16:47 +05:30
parent 098c1d840b
commit 0d97fc27c7
30 changed files with 81 additions and 385 deletions
@@ -1,6 +1,11 @@
/* eslint-disable react/prop-types */
import React from "react";
import { faCaretDown, faChevronRight, faEllipsis } from "@fortawesome/free-solid-svg-icons";
import {
faCaretDown,
faChevronRight,
faEllipsis,
faSlash
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { Link, ReactNode } from "@tanstack/react-router";
import { LinkComponentProps } from "node_modules/@tanstack/react-router/dist/esm/link";
@@ -78,13 +83,14 @@ const BreadcrumbPage = React.forwardRef<HTMLSpanElement, React.ComponentPropsWit
BreadcrumbPage.displayName = "BreadcrumbPage";
const BreadcrumbSeparator = ({ children, className, ...props }: React.ComponentProps<"li">) => (
<li
role="presentation"
aria-hidden="true"
className={twMerge("[&>svg]:h-3.5 [&>svg]:w-3.5", className)}
{...props}
>
{children ?? <FontAwesomeIcon icon={faChevronRight} />}
<li role="presentation" aria-hidden="true" className={twMerge("", className)} {...props}>
{children ?? (
<FontAwesomeIcon
icon={faSlash}
className="rotate-90 font-medium text-bunker-300"
style={{ fontSize: "10px" }}
/>
)}
</li>
);
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
+1 -1
View File
@@ -86,7 +86,7 @@ export type MenuGroupProps = {
export const MenuGroup = ({ children, title }: MenuGroupProps): JSX.Element => (
<>
<li className="px-2 pt-3 text-xs uppercase text-gray-400">{title}</li>
<li className="px-2 pt-3 text-xs font-medium uppercase text-gray-400">{title}</li>
{children}
</>
);