Skip to content

Commit

Permalink
fix: use list item button
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzgydi committed Dec 14, 2022
1 parent 6337788 commit f06fa3f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/proxy/proxy-render.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
alpha,
Box,
ListItem,
ListItemText,
ListItemButton,
Typography,
styled,
} from "@mui/material";
Expand Down Expand Up @@ -33,8 +33,7 @@ export const ProxyRender = (props: RenderProps) => {

if (type === 0) {
return (
<ListItem
button
<ListItemButton
dense
onClick={() => onHeadState(group.name, { open: !headState?.open })}
>
Expand All @@ -58,7 +57,7 @@ export const ProxyRender = (props: RenderProps) => {
}}
/>
{headState?.open ? <ExpandLessRounded /> : <ExpandMoreRounded />}
</ListItem>
</ListItemButton>
);
}

Expand Down

0 comments on commit f06fa3f

Please sign in to comment.