Skip to content

Commit

Permalink
Merge pull request #715 from susannalandstrom/fix-alertbase-sx
Browse files Browse the repository at this point in the history
add speading sx props
  • Loading branch information
susannalandstrom authored Dec 22, 2023
2 parents e20f7fe + 22466cb commit 5a1ab49
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 } }}
sx={{ alignItems: 'center', '& .MuiAlert-action': { pt: 0, pl: 5 }, ...sx }}
{...props}
/>
);
Expand Down

0 comments on commit 5a1ab49

Please sign in to comment.