mirror of
https://github.com/ente-io/ente.git
synced 2025-08-14 02:07:33 +00:00
tsc
The only place I can currently find where this code would run is on the delete account dialog, where props.color is being passed.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { ensure } from "@/utils/ensure";
|
||||
import Done from "@mui/icons-material/Done";
|
||||
import { Button, CircularProgress, type ButtonProps } from "@mui/material";
|
||||
|
||||
@@ -21,8 +22,10 @@ export default function EnteButton({
|
||||
...sx,
|
||||
...((loading || success) && {
|
||||
"&.Mui-disabled": (theme) => ({
|
||||
backgroundColor: theme.palette[props.color].main,
|
||||
color: theme.palette[props.color].contrastText,
|
||||
// TODO: Refactor to not need this ensure.
|
||||
backgroundColor:
|
||||
theme.palette[ensure(props.color)].main,
|
||||
color: theme.palette[ensure(props.color)].contrastText,
|
||||
}),
|
||||
}),
|
||||
}}
|
||||
|
Reference in New Issue
Block a user