chore: checkbox items' title & button icons

This commit is contained in:
dongchengjie
2024-07-12 18:24:19 +08:00
parent 49e36b6e00
commit f85f7758e6
3 changed files with 17 additions and 2 deletions

View File

@@ -30,6 +30,8 @@ import {
TextField,
styled,
} from "@mui/material";
import VerticalAlignTopIcon from "@mui/icons-material/VerticalAlignTop";
import VerticalAlignBottomIcon from "@mui/icons-material/VerticalAlignBottom";
import { GroupItem } from "@/components/profile/group-item";
import {
getNetworkInterfaces,
@@ -402,6 +404,11 @@ export const GroupsEditorViewer = (props: Props) => {
disableCloseOnSelect
onChange={(_, value) => value && field.onChange(value)}
renderInput={(params) => <TextField {...params} />}
renderOption={(props, option) => (
<li {...props} title={t(option)}>
{option}
</li>
)}
/>
</Item>
)}
@@ -705,6 +712,7 @@ export const GroupsEditorViewer = (props: Props) => {
<Button
fullWidth
variant="contained"
startIcon={<VerticalAlignTopIcon />}
onClick={() => {
try {
validateGroup();
@@ -726,6 +734,7 @@ export const GroupsEditorViewer = (props: Props) => {
<Button
fullWidth
variant="contained"
startIcon={<VerticalAlignBottomIcon />}
onClick={() => {
try {
validateGroup();