Skip to content

Commit a9bf930

Browse files
author
Lucas Araujo
committed
[DDW-796] Update story
1 parent 3d6948f commit a9bf930

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

storybook/stories/voting/Voting.stories.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import React from 'react';
33
import { storiesOf } from '@storybook/react';
44
import { action } from '@storybook/addon-actions';
5-
import { withKnobs, boolean, number } from '@storybook/addon-knobs';
5+
import { withKnobs, boolean, number, select } from '@storybook/addon-knobs';
66
import BigNumber from 'bignumber.js';
77
import StoryDecorator from '../_support/StoryDecorator';
88
import StoryProvider from '../_support/StoryProvider';
@@ -12,6 +12,7 @@ import VotingRegistrationStepsConfirm from '../../../source/renderer/app/compone
1212
import VotingRegistrationStepsEnterPinCode from '../../../source/renderer/app/components/voting/voting-registration-wizard-steps/VotingRegistrationStepsEnterPinCode';
1313
import VotingRegistrationStepsQrCode from '../../../source/renderer/app/components/voting/voting-registration-wizard-steps/VotingRegistrationStepsQrCode';
1414
import VotingInfo from '../../../source/renderer/app/components/voting/voting-info/VotingInfo';
15+
import { FundPhases } from '../../../source/renderer/app/stores/VotingStore';
1516
import { VotingFooterLinks } from '../../../source/renderer/app/components/voting/VotingFooterLinks';
1617
import {
1718
LANGUAGE_OPTIONS,
@@ -174,6 +175,12 @@ storiesOf('Voting|Voting Info', module)
174175
.add('Voting Info', () => (
175176
<VerticalFlexContainer>
176177
<VotingInfo
178+
fundPhase={select('Fund phase', [
179+
FundPhases.SNAPSHOT,
180+
FundPhases.VOTING,
181+
FundPhases.TALLYING,
182+
FundPhases.RESULTS,
183+
])}
177184
currentLocale={LANGUAGE_OPTIONS[0].value}
178185
currentDateFormat={DATE_ENGLISH_OPTIONS[0].value}
179186
currentTimeFormat={TIME_OPTIONS[0].value}

0 commit comments

Comments
 (0)