fix: fix blank page
This commit is contained in:
parent
a7005d3e05
commit
9706df061d
@ -115,22 +115,22 @@ const StyledLabel = styled(Box)(({ theme, ownerState }) => {
|
|||||||
// FILLED
|
// FILLED
|
||||||
...(filledVariant && {
|
...(filledVariant && {
|
||||||
color: theme.palette.background.paper,
|
color: theme.palette.background.paper,
|
||||||
backgroundColor: theme.palette[ownerState.color].main
|
backgroundColor: theme.palette[ownerState.color]?.main
|
||||||
}),
|
}),
|
||||||
// OUTLINED
|
// OUTLINED
|
||||||
...(outlinedVariant && {
|
...(outlinedVariant && {
|
||||||
backgroundColor: 'transparent',
|
backgroundColor: 'transparent',
|
||||||
color: theme.palette[ownerState.color].main,
|
color: theme.palette[ownerState.color]?.main,
|
||||||
border: `2px solid ${theme.palette[ownerState.color].main}`
|
border: `2px solid ${theme.palette[ownerState.color]?.main}`
|
||||||
}),
|
}),
|
||||||
// SOFT
|
// SOFT
|
||||||
...(softVariant && {
|
...(softVariant && {
|
||||||
color: theme.palette[ownerState.color]['dark'],
|
color: theme.palette[ownerState.color]['dark'],
|
||||||
backgroundColor: alpha(theme.palette[ownerState.color].main, 0.16)
|
backgroundColor: alpha(theme.palette[ownerState.color]?.main, 0.16)
|
||||||
}),
|
}),
|
||||||
// GHOST
|
// GHOST
|
||||||
...(ghostVariant && {
|
...(ghostVariant && {
|
||||||
color: theme.palette[ownerState.color].main
|
color: theme.palette[ownerState.color]?.main
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user