fix: body is not used if ListItem is not a link

This commit is contained in:
Ahmad Ansori Palembani 2023-08-31 09:14:04 +00:00
parent 85ddc7729a
commit edce3bb6b8

View file

@ -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>
); );
}; };