MVP
This commit is contained in:
@@ -2,21 +2,21 @@ import React from 'react';
|
||||
import VoteCard from './VoteCard';
|
||||
|
||||
export default {
|
||||
title: 'Components/VoteCard',
|
||||
component: VoteCard,
|
||||
title: 'Components/VoteCard',
|
||||
component: VoteCard,
|
||||
};
|
||||
|
||||
const Template = (args) => <VoteCard {...args} />;
|
||||
|
||||
export const Default = Template.bind({});
|
||||
Default.args = {
|
||||
number: 5,
|
||||
onClick: () => null,
|
||||
number: 5,
|
||||
onClick: () => null,
|
||||
};
|
||||
|
||||
export const Selected = Template.bind({});
|
||||
Selected.args = {
|
||||
number: 8,
|
||||
isSelected: true,
|
||||
onClick: () => null,
|
||||
number: 8,
|
||||
isSelected: true,
|
||||
onClick: () => null,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user