Initialize project using Create React App
This commit is contained in:
22
src/components/VoteCard/VoteCard.stories.js
Normal file
22
src/components/VoteCard/VoteCard.stories.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import React from 'react';
|
||||
import VoteCard from './VoteCard';
|
||||
|
||||
export default {
|
||||
title: 'Components/VoteCard',
|
||||
component: VoteCard,
|
||||
};
|
||||
|
||||
const Template = (args) => <VoteCard {...args} />;
|
||||
|
||||
export const Default = Template.bind({});
|
||||
Default.args = {
|
||||
number: 5,
|
||||
onClick: () => null,
|
||||
};
|
||||
|
||||
export const Selected = Template.bind({});
|
||||
Selected.args = {
|
||||
number: 8,
|
||||
isSelected: true,
|
||||
onClick: () => null,
|
||||
};
|
||||
Reference in New Issue
Block a user