fix: use list item button
This commit is contained in:
parent
6337788a22
commit
f06fa3f9b7
@ -1,8 +1,8 @@
|
|||||||
import {
|
import {
|
||||||
alpha,
|
alpha,
|
||||||
Box,
|
Box,
|
||||||
ListItem,
|
|
||||||
ListItemText,
|
ListItemText,
|
||||||
|
ListItemButton,
|
||||||
Typography,
|
Typography,
|
||||||
styled,
|
styled,
|
||||||
} from "@mui/material";
|
} from "@mui/material";
|
||||||
@ -33,8 +33,7 @@ export const ProxyRender = (props: RenderProps) => {
|
|||||||
|
|
||||||
if (type === 0) {
|
if (type === 0) {
|
||||||
return (
|
return (
|
||||||
<ListItem
|
<ListItemButton
|
||||||
button
|
|
||||||
dense
|
dense
|
||||||
onClick={() => onHeadState(group.name, { open: !headState?.open })}
|
onClick={() => onHeadState(group.name, { open: !headState?.open })}
|
||||||
>
|
>
|
||||||
@ -58,7 +57,7 @@ export const ProxyRender = (props: RenderProps) => {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{headState?.open ? <ExpandLessRounded /> : <ExpandMoreRounded />}
|
{headState?.open ? <ExpandLessRounded /> : <ExpandMoreRounded />}
|
||||||
</ListItem>
|
</ListItemButton>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user