Skip to content

Commit

Permalink
fix: props order
Browse files Browse the repository at this point in the history
  • Loading branch information
golcinho committed Sep 30, 2020
1 parent 59da87e commit f21f6e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ export const InlineAlert: React.FC<InlineAlertProps> = memo(({ className, style,
<StyledActionsWrapper flexDirection="row" flexWrap="wrap" marginTop="xSmall">
{props.actions.map(({ text, variant = 'secondary', ...actionProps }, index) => (
<Button
{...excludeMarginProps(actionProps)}
key={index}
marginBottom="xSmall"
marginHorizontal="xxSmall"
mobileWidth="auto"
variant={getActionVariant(variant)}
{...excludeMarginProps(actionProps)}
>
{text}
</Button>
Expand Down
2 changes: 1 addition & 1 deletion packages/big-design/src/components/Message/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ export const Message: React.FC<MessageProps> = memo(({ className, style, header,
<StyledActionsWrapper flexDirection="row" flexWrap="wrap" marginTop="xSmall">
{props.actions.map(({ text, variant = 'secondary', ...actionProps }, index) => (
<Button
{...excludeMarginProps(actionProps)}
key={index}
marginBottom="xSmall"
marginHorizontal="xxSmall"
mobileWidth="auto"
variant={getActionVariant(variant)}
{...excludeMarginProps(actionProps)}
>
{text}
</Button>
Expand Down

0 comments on commit f21f6e9

Please sign in to comment.