diff --git a/src/components/AlertBase.tsx b/src/components/AlertBase.tsx index 765e5d635..3fff7fd1b 100644 --- a/src/components/AlertBase.tsx +++ b/src/components/AlertBase.tsx @@ -9,7 +9,7 @@ export interface AlertBaseProps extends MuiAlertProps { } const AlertBase = ( - { severity = 'success', variant = 'standard', ...props }: AlertBaseProps, + { severity = 'success', variant = 'standard', sx, ...props }: AlertBaseProps, ref: Ref ): JSX.Element => { return ( @@ -17,7 +17,7 @@ const AlertBase = ( ref={ref} severity={severity} variant={variant} - sx={{ alignItems: 'center', '& .MuiAlert-action': { pt: 0, pl: 5 }, ...props.sx }} + sx={{ alignItems: 'center', '& .MuiAlert-action': { pt: 0, pl: 5 }, ...sx }} {...props} /> );