Skip to content

Instantly share code, notes, and snippets.

@ernestofreyreg
Created August 10, 2021 17:02
Show Gist options
  • Save ernestofreyreg/ae576b402f6656920d4c7d8dc53c15ba to your computer and use it in GitHub Desktop.
Save ernestofreyreg/ae576b402f6656920d4c7d8dc53c15ba to your computer and use it in GitHub Desktop.
import React from 'react'
import { ComponentMeta } from '@storybook/react'
import { SubscriptionList } from './SubscriptionList'
import { Container } from '@material-ui/core'
export default {
title: 'Components/SubscriptionList',
component: SubscriptionList,
decorators: [
Story => (
<Container maxWidth='lg'>
<Story />
</Container>
)
]
} as ComponentMeta<typeof SubscriptionList>
export const list = () => (
<SubscriptionList
subscriptions={[
{ email: 'johndoe@gmail.com', updated: 1628613368790 },
{ email: 'marydoe@gmail.com', updated: 1628613368790 },
{ email: 'carlos@yahoo.com', updated: 1628613368790 }
]}
/>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment