Skip to content

Commit

Permalink
fix(DateInput): static time for story
Browse files Browse the repository at this point in the history
  • Loading branch information
zouxuoz committed Nov 6, 2018
1 parent 6c25b98 commit 630f6cc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/atoms/dataEntry/DateInput/DateInput.stories.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import React from 'react';
import moment from 'moment';

let value = moment().format('YYYY-MM-DD');

export default (asStory) => {
asStory('ATOMS/DATA ENTRY/DateInput', module, (story, { DateInput }) => {
story
.add('default', () => (
<DateInput value={ value } onChange={ (val) => { value = val; } } />
<DateInput value="11/02/2018" onChange={ () => null } />
));
});
};
Expand Down

0 comments on commit 630f6cc

Please sign in to comment.