significant refactor
This commit is contained in:
@@ -10,21 +10,18 @@ interface ListButtonProps {
|
||||
const ListButton = ({ label, onClick, Icon }: ListButtonProps) => {
|
||||
return (
|
||||
<>
|
||||
<UnstyledButton
|
||||
w='100%'
|
||||
p='md'
|
||||
component={'button'}
|
||||
onClick={onClick}
|
||||
>
|
||||
<UnstyledButton w="100%" p="md" component={"button"} onClick={onClick}>
|
||||
<Group>
|
||||
<Icon weight='bold' size={20} />
|
||||
<Text fw={500} size='md'>{label}</Text>
|
||||
<CaretRightIcon style={{ marginLeft: 'auto' }} size={20} />
|
||||
<Icon weight="bold" size={20} />
|
||||
<Text fw={500} size="md">
|
||||
{label}
|
||||
</Text>
|
||||
<CaretRightIcon style={{ marginLeft: "auto" }} size={20} />
|
||||
</Group>
|
||||
</UnstyledButton>
|
||||
<Divider />
|
||||
</>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export default ListButton;
|
||||
|
||||
Reference in New Issue
Block a user