Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9487160

Browse files
committed
fix storyboook steps
1 parent8b5ad04 commit9487160

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

‎web-app/stories/Step.stories.tsx

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
importReactfrom'react'
22

3-
import{boolean,text,withKnobs}from'@storybook/addon-knobs'
3+
import{select,boolean,text,withKnobs}from'@storybook/addon-knobs'
44
import{storiesOf}from'@storybook/react'
55
importSideBarDecoratorfrom'./utils/SideBarDecorator'
66

7-
importStepfrom'../src/containers/Tutorial/LevelPage/Level/StepDescription'
7+
importStepDescriptionfrom'../src/containers/Tutorial/LevelPage/Level/StepDescription'
88

99
conststepText=
1010
'This is a long paragraph of step text intended to wrap around the side after a short period of writing to demonstrate text wrap among other things'
@@ -32,6 +32,15 @@ const paragraphText = `Markdown included \`code\`, *bold*, & _italics_.
3232
storiesOf('Tutorial SideBar',module)
3333
.addDecorator(SideBarDecorator)
3434
.addDecorator(withKnobs)
35-
.add('Step',()=><div>Step</div>)
36-
// .add('Step', () => <Step text={text('text', stepText)} hide={boolean('hide', false)} />)
37-
// .add('Step Markdown', () => <Step text={text('text', paragraphText)} hide={boolean('hide', false)} />)
35+
.add('Step Description',()=>(
36+
<StepDescription
37+
text={text('text',stepText)}
38+
mode={select('mode',{active:'ACTIVE',complete:'COMPLETE',incomplete:'INCOMPLETE'},'active','step')}
39+
/>
40+
))
41+
.add('Step Markdown',()=>(
42+
<StepDescription
43+
text={text('text',paragraphText)}
44+
mode={select('mode',{active:'ACTIVE',complete:'COMPLETE',incomplete:'INCOMPLETE'},'active','step')}
45+
/>
46+
))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp