Skip to content

Commit

Permalink
consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
noraleonte committed Apr 12, 2024
1 parent 1e2d325 commit aebb2b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,7 @@ const CustomTreeItem = React.forwardRef(function CustomTreeItem(props, ref) {
</TreeItem2IconContainer>

<CustomLabel
{...getLabelProps()}
icon={icon}
expandable={expandable && status.expanded}
{...getLabelProps({ icon, expandable: expandable && status.expanded })}
/>
</CustomTreeItemContent>
{children && <TransitionComponent {...getGroupTransitionProps()} />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@ const StyledTreeItemLabelText = styled(Typography)({
}) as unknown as typeof Typography;

interface CustomLabelProps {
children: string;
className: string;
children: React.ReactNode;
icon?: React.ElementType;
expandable?: boolean;
}
Expand Down Expand Up @@ -281,9 +280,7 @@ const CustomTreeItem = React.forwardRef(function CustomTreeItem(
</TreeItem2IconContainer>

<CustomLabel
{...getLabelProps()}
icon={icon}
expandable={expandable && status.expanded}
{...getLabelProps({ icon, expandable: expandable && status.expanded })}
/>
</CustomTreeItemContent>
{children && <TransitionComponent {...getGroupTransitionProps()} />}
Expand Down

0 comments on commit aebb2b1

Please sign in to comment.