Skip to content

Commit

Permalink
fix generic modal
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Jun 21, 2022
1 parent fde9d2f commit 78b15be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/meteor/client/components/GenericModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ const iconMap: Record<string, ComponentProps<typeof Icon>['name']> = {
const getButtonProps = (variant: VariantType): ComponentProps<typeof Button> => {
switch (variant) {
case 'danger':
return { primary: true, danger: true };
return { secondaryDanger: true }; // TODO: secondary danger
case 'warning':
return { primary: true };
return { secondaryWarning: true };
default:
return {};
}
Expand Down

0 comments on commit 78b15be

Please sign in to comment.