mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Fix: SettingItem with no onClick
This commit is contained in:
1 parent
a29ba86577
commit
7b9d8826a6
1 file changed
+11
@@ -24,6 +24,17 @@ export const SettingItem = ({
|
||||
icon,
|
||||
disabled,
|
||||
}: IProps) => {
|
||||
if (!onClick)
|
||||
return (
|
||||
<>
|
||||
<ListItem button>
|
||||
<ListItemIcon>{icon}</ListItemIcon>
|
||||
<ListItemText primary={label} secondary={value ? value : undefined} />
|
||||
</ListItem>
|
||||
<Divider />
|
||||
</>
|
||||
);
|
||||
|
||||
return (
|
||||
<>
|
||||
<ListItem onClick={() => onClick(options)} button>
|
||||
|
||||
Reference in new issue
Block a user