Skip to content

Commit

Permalink
refactor: simple TicketCreateModal small display
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar committed Sep 14, 2023
1 parent 81718be commit 3ea214c
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,9 @@ const TicketCreateModal: React.FC<
setIsOpen(!isOpen);
};

interface SecondaryButton {
type: 'secondary';
size?: 'small' | undefined;
}
interface LinkButton {
type: 'link';
size: undefined;
}
const buttonAttrs: SecondaryButton | LinkButton =
const buttonAttrs:
| { type: 'secondary'; size?: 'small' | undefined }
| { type: 'link'; size: undefined } =
display === 'secondary-small'
? { type: 'secondary', size: 'small' }
: { type: 'link', size: undefined };
Expand Down

0 comments on commit 3ea214c

Please sign in to comment.