mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +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,
|
icon,
|
||||||
disabled,
|
disabled,
|
||||||
}: IProps) => {
|
}: IProps) => {
|
||||||
|
if (!onClick)
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<ListItem button>
|
||||||
|
<ListItemIcon>{icon}</ListItemIcon>
|
||||||
|
<ListItemText primary={label} secondary={value ? value : undefined} />
|
||||||
|
</ListItem>
|
||||||
|
<Divider />
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ListItem onClick={() => onClick(options)} button>
|
<ListItem onClick={() => onClick(options)} button>
|
||||||
|
|||||||
Reference in new issue
Block a user