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

Commit1fa2004

Browse files
committed
replace checkboxes with icons
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent5aeaae7 commit1fa2004

File tree

3 files changed

+6
-47
lines changed

3 files changed

+6
-47
lines changed

‎web-app/src/components/Checkbox/index.tsx

Lines changed: 0 additions & 18 deletions
This file was deleted.

‎web-app/src/containers/Tutorial/components/Step.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import*asReactfrom'react'
22
import*asTfrom'typings'
33
import{css,jsx}from'@emotion/core'
4-
importCheckboxfrom'../../../components/Checkbox'
4+
importIconfrom'../../../components/Icon'
55
importMarkdownfrom'../../../components/Markdown'
66

77
interfaceProps{
@@ -20,8 +20,8 @@ const styles = {
2020
content:{
2121
margin:0,
2222
},
23-
checkboxContainer:{
24-
paddingTop:2,
23+
statusContainer:{
24+
paddingTop:0,
2525
width:'1rem',
2626
},
2727
options:{
@@ -41,8 +41,9 @@ const Step = (props: Props) => {
4141
return(
4242
<div>
4343
<divcss={styles.card}>
44-
<divcss={styles.checkboxContainer}>
45-
<Checkboxstatus={props.status}/>
44+
<divcss={styles.statusContainer}>
45+
{props.status==='ACTIVE'&&<Icontype="success-filling"size="small"style={{color:'lightgrey'}}/>}
46+
{props.status==='COMPLETE'&&<Icontype="success-filling"size="small"style={{color:'#37B809'}}/>}
4647
</div>
4748
<div>
4849
<Markdown>{props.content||''}</Markdown>

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

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp