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

Commit223019e

Browse files
committed
cleanup step stories
1 parent00b3550 commit223019e

File tree

1 file changed

+23
-41
lines changed

1 file changed

+23
-41
lines changed

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

Lines changed: 23 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
importReactfrom'react'
22

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

@@ -9,46 +9,28 @@ import Step from '../src/components/Stage/StepDescription'
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'
1111

12+
constparagraphText=`Markdown included \`code\`, *bold*, & _italics_.
13+
\`\`\`javascript
14+
var a = 12
15+
16+
function example(a) {
17+
return a + 1
18+
}
19+
\`\`\`
20+
21+
Headers can be added:
22+
23+
# h1
24+
## h2
25+
### h3
26+
#### h4
27+
##### h5
28+
29+
Emojis: :) :| :(
30+
`
31+
1232
storiesOf('Tutorial SideBar',module)
1333
.addDecorator(SideBarDecorator)
1434
.addDecorator(withKnobs)
15-
.add('Step',()=>(
16-
<Step
17-
content={object('content',{
18-
text:stepText,
19-
})}
20-
status={object('status',{
21-
active:true,
22-
complete:false,
23-
})}
24-
/>
25-
))
26-
.add('Step Markdown',()=>(
27-
<Step
28-
content={object('content',{
29-
text:`Markdown included \`code\`, *bold*, & _italics_.
30-
\`\`\`javascript
31-
var a = 12
32-
33-
function example(a) {
34-
return a + 1
35-
}
36-
\`\`\`
37-
38-
Headers can be added:
39-
40-
# h1
41-
## h2
42-
### h3
43-
#### h4
44-
##### h5
45-
46-
Emojis: :) :| :(
47-
`,
48-
})}
49-
status={object('status',{
50-
active:false,
51-
complete:true,
52-
})}
53-
/>
54-
))
35+
.add('Step',()=><Steptext={text('text',stepText)}hide={boolean('hide',false)}/>)
36+
.add('Step Markdown',()=><Steptext={text('text',paragraphText)}hide={boolean('hide',false)}/>)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp