-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
188 additions
and
36 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,20 @@ | ||
import {storiesOf} from '@kadira/storybook' | ||
import {storiesOf, action} from '@kadira/storybook' | ||
import React from 'react' | ||
import CronBuilder from '../CronBuilder' | ||
|
||
storiesOf('CronBuilder', module) | ||
.add('default', () => <CronBuilder />); | ||
.add('default', () => <CronBuilder | ||
onChange={action('got expression')} | ||
/>) | ||
.add('do not show result', () => <CronBuilder | ||
showResult={false} | ||
onChange={action('got expression')} | ||
/>) | ||
.add('with predefined expression', () => <CronBuilder | ||
cronExpression="*/4 10,20 * * 6-7" | ||
onChange={action('got expression')} | ||
/>) | ||
.add('with predefined expression time frame', () => <CronBuilder | ||
cronExpression="30 9-18 * * 1-5" | ||
onChange={action('got expression')} | ||
/>); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters