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

Commit43c1659

Browse files
committed
closes#96. cleanup overview page
1 parent42719d0 commit43c1659

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

‎web-app/src/containers/Overview/OverviewPage.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as React from 'react'
22
import*asGfrom'typings/graphql'
33
importButtonfrom'../../components/Button'
44
importIconfrom'../../components/Icon'
5+
import{Divider}from'@alifd/next'
56
importMarkdownfrom'../../components/Markdown'
67

78
constfooterHeight='3rem'
@@ -85,6 +86,7 @@ const Summary = ({ title, description, levels, onNext, onBack }: Props) => (
8586
{index+1}.{level.title}
8687
</h4>
8788
<div>{level.summary}</div>
89+
<Divider/>
8890
</div>
8991
))}
9092
</div>

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import{linkTo}from'@storybook/addon-links'
2+
import{action}from'@storybook/addon-actions'
23
import{storiesOf}from'@storybook/react'
34
importReactfrom'react'
45
importOverViewPagefrom'../src/containers/Overview/OverviewPage'
@@ -11,24 +12,25 @@ storiesOf('Overview', module)
1112
{
1213
id:'L1',
1314
title:'The First Level',
14-
description:'A Summary of the first level',
15+
summary:'A Summary of the first level',
1516
},
1617
{
1718
id:'L2',
1819
title:'The Second Level',
19-
description:'A Summary of the second level',
20+
summary:'A Summary of the second level',
2021
},
2122
{
2223
id:'L3',
2324
title:'The Third Level',
24-
description:'A Summary of the third level',
25+
summary:'A Summary of the third level',
2526
},
2627
]
2728
return(
2829
<OverViewPage
2930
title="Some Title"
3031
description="Some description"
3132
levels={levels}
33+
onBack={action('back')}
3234
onNext={linkTo('Tutorial SideBar','Level')}
3335
/>
3436
)

‎web-app/stories/utils/SideBarDecorator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const styles = {
1010
borderRight:'2px solid black',
1111
width:'50rem',
1212
height:window.innerHeight,
13-
backgroundColor:'yellow',
13+
backgroundColor:'white',
1414
},
1515
}
1616

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp