diff options
Diffstat (limited to 'components/Ranking/RankingList.stories.js')
-rw-r--r-- | components/Ranking/RankingList.stories.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/components/Ranking/RankingList.stories.js b/components/Ranking/RankingList.stories.js new file mode 100644 index 0000000..ad3576b --- /dev/null +++ b/components/Ranking/RankingList.stories.js @@ -0,0 +1,23 @@ +import { storiesOf } from '@storybook/vue' +import { center } from '../../.storybook/decorators' + +import RankingList from './RankingList' + +import { rankingEntry } from './RankingEntry.stories' + +const rankingList = { + scores: Array.from(Array(3).keys()).map(i => ({ + ...rankingEntry, + troop: `Troop${i}` + })) +} + +storiesOf('Ranking/RankingList', module) + .addDecorator(center) + .add('default', () => { + return { + components: { RankingList }, + template: `<ranking-list :scores="scores" />`, + data: () => rankingList + } + }) |