Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions apps/web/app/(org)/dashboard/_components/DashboardInner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ import {
import type { DownloadIconHandle } from "./AnimatedIcons/Download";
import type { ReferIconHandle } from "./AnimatedIcons/Refer";

export const navItemClass =
"flex items-center justify-start rounded-xl outline-none tracking-tight overflow-hidden";

export default function DashboardInner({
children,
}: {
Expand Down
7 changes: 2 additions & 5 deletions apps/web/app/(org)/dashboard/_components/Navbar/Items.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ interface Props {
toggleMobileNav?: () => void;
}

export const navItemClass =
"flex items-center justify-start rounded-xl outline-none tracking-tight overflow-hidden";

const AdminNavItems = ({ toggleMobileNav }: Props) => {
const pathname = usePathname();
const [open, setOpen] = useState(false);
Expand Down Expand Up @@ -191,7 +188,7 @@ const AdminNavItems = ({ toggleMobileNav }: Props) => {
? "pointer-events-none"
: "text-gray-10 hover:text-gray-12 hover:bg-gray-6",
)}
key={organization.organization.name + "-organization"}
key={`${organization.organization.name}-organization`}
onSelect={async () => {
await updateActiveOrganization(
organization.organization.id,
Expand Down Expand Up @@ -436,7 +433,7 @@ const NavItem = ({
isPathActive(href)
? "bg-transparent pointer-events-none"
: "hover:bg-gray-2",
navItemClass,
"flex overflow-hidden justify-start items-center tracking-tight rounded-xl outline-none",
)}
>
{cloneElement(icon, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import type { Spaces } from "../../dashboard-data";
import { LayersIcon } from "../AnimatedIcons";
import type { LayersIconHandle } from "../AnimatedIcons/Layers";
import { ConfirmationDialog } from "../ConfirmationDialog";
import { navItemClass } from "./Items";
import SpaceDialog from "./SpaceDialog";

const SpacesList = ({ toggleMobileNav }: { toggleMobileNav?: () => void }) => {
Expand Down Expand Up @@ -181,7 +180,7 @@ const SpacesList = ({ toggleMobileNav }: { toggleMobileNav?: () => void }) => {
pathname.includes("/dashboard/spaces/browse")
? "bg-gray-3 pointer-events-none"
: "hover:bg-gray-2",
navItemClass,
"flex items-center justify-start rounded-xl outline-none tracking-tight overflow-hidden",
)}
>
<LayersIcon
Expand Down
Loading