chore: fix select component bg in connection

This commit is contained in:
dongchengjie
2024-05-18 18:42:51 +08:00
parent c97061770a
commit 4a67e1021a
3 changed files with 34 additions and 31 deletions

View File

@@ -0,0 +1,19 @@
import { Select, SelectProps, styled } from "@mui/material";
export const BaseStyledSelect = styled((props: SelectProps<string>) => {
return (
<Select
size="small"
autoComplete="off"
sx={{
width: 120,
height: 33.375,
mr: 1,
'[role="button"]': { py: 0.65 },
}}
{...props}
/>
);
})(({ theme }) => ({
background: theme.palette.mode === "light" ? "#fff" : undefined,
}));