Skip to content

Commit

Permalink
remove palettemode casting
Browse files Browse the repository at this point in the history
  • Loading branch information
sai6855 committed Dec 2, 2024
1 parent cb92327 commit 1812c9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/mui-material/src/styles/createPalette.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,10 +419,10 @@ export default function createPalette(palette: PaletteOptions): Palette {
return colorInput;
};

let modeHydrated;
let modeHydrated: ReturnType<typeof getLight> | ReturnType<typeof getDark>;
if (mode === 'light') {
modeHydrated = getLight();
} else if (mode === 'dark') {
} else {
modeHydrated = getDark();
}

Expand Down Expand Up @@ -473,7 +473,7 @@ export default function createPalette(palette: PaletteOptions): Palette {
...modeHydrated,
},
other,
) as Palette;
);

return paletteOutput;
}

0 comments on commit 1812c9f

Please sign in to comment.