Add theme parameter

This commit is contained in:
Nicola Benaglia 2025-04-06 21:08:47 +02:00
parent f51242959a
commit a943e72ecf

View File

@ -204,11 +204,13 @@ export const CustomButtonAccept = styled(Box)<CustomButtonProps>(
}) })
); );
export const CustomInput = styled(TextField)({ export const CustomInput = styled(TextField)(({ theme }) => ({
width: "183px", // Adjust the width as needed width: "183px", // Adjust the width as needed
borderRadius: "5px", borderRadius: "5px",
// backgroundColor: "rgba(30, 30, 32, 1)", // backgroundColor: "rgba(30, 30, 32, 1)",
outline: "none", outline: "none",
backgroundColor: theme.palette.background.default,
color: theme.palette.text.primary,
input: { input: {
fontSize: 10, fontSize: 10,
fontFamily: "Inter", fontFamily: "Inter",
@ -241,7 +243,7 @@ export const CustomInput = styled(TextField)({
"& .MuiInput-underline:after": { "& .MuiInput-underline:after": {
borderBottom: "none", borderBottom: "none",
}, },
}); }));
export const CustomLabel = styled(InputLabel)(({ theme }) => ({ export const CustomLabel = styled(InputLabel)(({ theme }) => ({
fontWeight: 400, fontWeight: 400,