significant refactor
This commit is contained in:
@@ -14,17 +14,21 @@ const ListLink = ({ label, to, Icon }: ListLinkProps) => {
|
||||
return (
|
||||
<>
|
||||
<NavLink
|
||||
w='100%'
|
||||
p='md'
|
||||
component={'button'}
|
||||
w="100%"
|
||||
p="md"
|
||||
component={"button"}
|
||||
onClick={() => navigate({ to })}
|
||||
label={<Text fw={500} size='md'>{label}</Text>}
|
||||
leftSection={Icon && <Icon weight='bold' size={20} />}
|
||||
label={
|
||||
<Text fw={500} size="md">
|
||||
{label}
|
||||
</Text>
|
||||
}
|
||||
leftSection={Icon && <Icon weight="bold" size={20} />}
|
||||
rightSection={<CaretRightIcon size={20} />}
|
||||
/>
|
||||
<Divider />
|
||||
</>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export default ListLink;
|
||||
|
||||
Reference in New Issue
Block a user