22import React from 'react' ;
33import { storiesOf } from '@storybook/react' ;
44import { action } from '@storybook/addon-actions' ;
5- import { withKnobs , boolean , number } from '@storybook/addon-knobs' ;
5+ import { withKnobs , boolean , number , select } from '@storybook/addon-knobs' ;
66import BigNumber from 'bignumber.js' ;
77import StoryDecorator from '../_support/StoryDecorator' ;
88import StoryProvider from '../_support/StoryProvider' ;
@@ -12,6 +12,7 @@ import VotingRegistrationStepsConfirm from '../../../source/renderer/app/compone
1212import VotingRegistrationStepsEnterPinCode from '../../../source/renderer/app/components/voting/voting-registration-wizard-steps/VotingRegistrationStepsEnterPinCode' ;
1313import VotingRegistrationStepsQrCode from '../../../source/renderer/app/components/voting/voting-registration-wizard-steps/VotingRegistrationStepsQrCode' ;
1414import VotingInfo from '../../../source/renderer/app/components/voting/voting-info/VotingInfo' ;
15+ import { FundPhases } from '../../../source/renderer/app/stores/VotingStore' ;
1516import { VotingFooterLinks } from '../../../source/renderer/app/components/voting/VotingFooterLinks' ;
1617import {
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