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

Commit864f379

Browse files
committed
fix check status
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent5d55c5a commit864f379

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const Level = ({
158158
returnnull
159159
}
160160
letsubtasks=null
161-
if(step.setup.subtasks?.length){
161+
if(step.setup.subtasks){
162162
if(testStatus?.summary){
163163
subtasks=Object.keys(testStatus.summary).map((testName:string)=>({
164164
name:testName,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ const Step = (props: Props) => {
5050
<div>
5151
<divcss={styles.card}>
5252
<divcss={styles.statusContainer}>
53-
{props.status==='ACTIVE'&&<TestStatusIconsize="small"checked/>}
54-
{props.status==='COMPLETE'&&<TestStatusIconsize="small"/>}
53+
{props.status==='ACTIVE'&&<TestStatusIconsize="small"/>}
54+
{props.status==='COMPLETE'&&<TestStatusIconsize="small"checked/>}
5555
</div>
5656
<div>
5757
<divcss={styles.content}>

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,19 @@ interface Props {
66
checked?:boolean
77
}
88

9+
constcolors={
10+
complete:'#37B809',
11+
incomplete:'lightgrey',
12+
}
13+
914
constTestStatusIcon=(props:Props)=>{
10-
return<Icontype="success-filling"size={props.size}style={{color:props.checked ?'#37B809' :'lightgrey'}}/>
15+
return(
16+
<Icon
17+
type="success-filling"
18+
size={props.size}
19+
style={{color:props.checked ?colors.complete :colors.incomplete}}
20+
/>
21+
)
1122
}
1223

1324
exportdefaultTestStatusIcon

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ storiesOf('Level', module)
133133
setup:{
134134
id:'L1:S2:SETUP',
135135
commits:['abcdefg'],
136-
subtasks:['^SomeTest'],
136+
subtasks:true,
137+
filter:'^SomeTest',
137138
},
138139
solution:{
139140
id:'L1:S2:SOLUTION',

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp