Skip to content

Commit

Permalink
feat(odyssey-react-mui): apply ODS Icons to MuiAlert
Browse files Browse the repository at this point in the history
Renames components.ts to components.tsx
  • Loading branch information
edburyenegren-okta committed Aug 30, 2022
1 parent fa53ccb commit 4260b7a
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,22 @@
import type { ThemeOptions } from "@mui/material";
//import radioClasses from "@mui/material";
import { outlinedInputClasses } from "@mui/material/OutlinedInput";
import {
AlertTriangleFilledIcon,
CheckCircleFilledIcon,
InformationCircleFilledIcon,
} from "../../components/Icon";

export const components: ThemeOptions["components"] = {
MuiAlert: {
defaultProps: {
iconMapping: {
error: <AlertTriangleFilledIcon fontSize="inherit" />,
info: <InformationCircleFilledIcon fontSize="inherit" />,
success: <CheckCircleFilledIcon fontSize="inherit" />,
warning: <AlertTriangleFilledIcon fontSize="inherit" />,
},
},
styleOverrides: {
root: ({ ownerState, theme }) => ({
padding: theme.spacing(4),
Expand Down

0 comments on commit 4260b7a

Please sign in to comment.