chore: fix select component bg in connection

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

No files matched your search

@@ -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,
}));