Skip to content

Commit

Permalink
feat: use phosphor icon for sidebar arrows
Browse files Browse the repository at this point in the history
Signed-off-by: Quentin Guidée <[email protected]>
  • Loading branch information
quentinguidee committed Mar 8, 2024
1 parent 2b49e99 commit 09fb750
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/components/lib/components/Sidebar/SidebarItem.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Fragment, PropsWithChildren, ReactNode, useState } from "react";
import cx from "classnames";
import { NavLink, NavLinkProps } from "../NavLink/NavLink.tsx";
import { MaterialIcon } from "../MaterialIcon/MaterialIcon.tsx";
import { CaretDown } from "@phosphor-icons/react";

export type SidebarItemVariant = "default" | "red";

Expand Down Expand Up @@ -34,12 +34,7 @@ export function SidebarItem<T>(props: Readonly<SidebarItemProps<T>>) {
</div>
)}
<div className="sidebar-item-trailing">{trailing}</div>
{hasChildren && (
<MaterialIcon
className="sidebar-item-expand"
icon="expand_more"
/>
)}
{hasChildren && <CaretDown className="sidebar-item-expand" />}
</Fragment>
);

Expand Down

0 comments on commit 09fb750

Please sign in to comment.