23 lines
410 B
JavaScript
23 lines
410 B
JavaScript
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,
|
|
};
|