Skip to content

Commit

Permalink
Merge pull request #440 from ClickHouse/zn-fix-icondir
Browse files Browse the repository at this point in the history
fix iconDir prop
  • Loading branch information
ArctypeZach authored Jul 2, 2024
2 parents 43810bf + 278e482 commit c425a42
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,19 @@ export const SidebarCollapsibleTitle = ({
$type={type}
{...props}
>
{icon && (
{icon && iconDir === "start" && (
<Icon
name={icon}
size="sm"
/>
)}
{label}
{icon && iconDir === "end" && (
<Icon
name={icon}
size="sm"
/>
)}
</SidebarTitleWrapper>
<Collapsible.Content>{children}</Collapsible.Content>
</Collapsible>
Expand Down

0 comments on commit c425a42

Please sign in to comment.