Skip to content

Commit

Permalink
fix(ListItemView): removed max identation (#1535)
Browse files Browse the repository at this point in the history
  • Loading branch information
LakeVostok authored Apr 22, 2024
1 parent 62431ca commit d7d45db
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export interface ListItemViewProps extends QAProps, ListItemCommonProps {
}

interface SlotProps extends FlexProps {
indentation?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
indentation?: number;
}

export const ListItemViewSlot = ({
Expand All @@ -77,7 +77,7 @@ export const ListItemViewSlot = ({
};

const renderSafeIndentation = (indentation?: number) => {
if (indentation && indentation >= 1 && indentation < 11) {
if (indentation && indentation >= 1) {
return (
<ListItemViewSlot indentation={Math.floor(indentation) as SlotProps['indentation']} />
);
Expand Down

0 comments on commit d7d45db

Please sign in to comment.