fix: body is not used if ListItem
is not a link
This commit is contained in:
parent
85ddc7729a
commit
edce3bb6b8
1 changed files with 3 additions and 1 deletions
|
@ -121,7 +121,9 @@ const ListItem: React.FC<IListItem> = ({ label, hint, children, to, onClick, onS
|
||||||
<Comp
|
<Comp
|
||||||
className={className}
|
className={className}
|
||||||
{...linkProps}
|
{...linkProps}
|
||||||
/>
|
>
|
||||||
|
{body}
|
||||||
|
</Comp>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue