Skip to content

Commit

Permalink
destruct sx from props
Browse files Browse the repository at this point in the history
  • Loading branch information
susannalandstrom committed Dec 22, 2023
1 parent fe3f6db commit 22466cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/AlertBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ export interface AlertBaseProps extends MuiAlertProps {
}

const AlertBase = (
{ severity = 'success', variant = 'standard', ...props }: AlertBaseProps,
{ severity = 'success', variant = 'standard', sx, ...props }: AlertBaseProps,
ref: Ref<HTMLDivElement>
): JSX.Element => {
return (
<MuiAlert
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}
/>
);
Expand Down

0 comments on commit 22466cb

Please sign in to comment.