import { ComponentMeta, ComponentStory } from '@storybook/react' import { EntityDisplay } from '@dao-dao/stateful/components/EntityDisplay' import { DISTRIBUTION_COLORS } from '@dao-dao/utils' import { DaoCreateVotingPowerDistributionReviewCard } from './DaoCreateVotingPowerDistribution' export default { title: 'DAO DAO / packages / stateless / components / dao / create / DaoCreateVotingPowerDistributionReviewCard', component: DaoCreateVotingPowerDistributionReviewCard, } as ComponentMeta const Template: ComponentStory< typeof DaoCreateVotingPowerDistributionReviewCard > = (args) => (
) export const Default = Template.bind({}) Default.args = { EntityDisplay, pieData: [ { value: 15, color: DISTRIBUTION_COLORS[0], }, { value: 85, color: 'rgba(243, 246, 248, 0.4)', }, ], tierData: [ { name: 'Treasury', color: 'rgba(243, 246, 248, 0.4)', readableValue: '85%', }, { name: 'Core members', color: DISTRIBUTION_COLORS[0], members: [ { address: 'juno49hndidfcjf928u12wds1vf11jieds8d9', readableValue: '8%', }, { address: 'juno49hndidfcjf928u12wds1vf11jieds8d9', readableValue: '5%', }, { address: 'juno49hndidfcjf928u12wds1vf11jieds8d9', readableValue: '2%', }, ], }, ], } Default.parameters = { design: { type: 'figma', url: 'https://www.figma.com/file/ZnQ4SMv8UUgKDZsR5YjVGH/Dao-2.0?node-id=981%3A45276', }, }