Hide "become a sustainer" button if you're already a sustainer

This commit is contained in:
Evan Hahn 2021-11-30 10:29:57 -06:00 committed by GitHub
parent 7edf3763a8
commit 67b17ec317
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 318 additions and 26 deletions

View file

@ -18,6 +18,7 @@ const i18n = setupI18n('en', enMessages);
const story = storiesOf('Components/BadgeDialog', module);
const defaultProps: ComponentProps<typeof BadgeDialog> = {
areWeASubscriber: false,
badges: getFakeBadges(3),
firstName: 'Alice',
i18n,
@ -95,3 +96,7 @@ story.add('Five badges', () => (
story.add('Many badges', () => (
<BadgeDialog {...defaultProps} badges={getFakeBadges(50)} />
));
story.add('Many badges, user is a subscriber', () => (
<BadgeDialog {...defaultProps} areWeASubscriber badges={getFakeBadges(50)} />
));