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

Commit131ebf6

Browse files
authored
Merge pull request#191 from ShMcK/remove/load-solution
remove load solution button
2 parents25b4652 +3d3ee3a commit131ebf6

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

‎web-app/src/components/NewUserExperience/NuxTutorial.tsx

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
importReactfrom'react'
22
import{Collapse,Icon}from'@alifd/next'
3-
importButtonfrom'../Button'
43
importReactCSSTransitionGroupfrom'react-addons-css-transition-group'
54
import'./transition.css'
65

@@ -27,27 +26,6 @@ const styles = {
2726
},
2827
}
2928

30-
typeLoadSolutionButtonProps={
31-
onLoadSolution:()=>void
32-
close:()=>void
33-
}
34-
35-
constLoadSolutionButton=(props:LoadSolutionButtonProps)=>{
36-
const[loadedSolution,setLoadedSolution]=React.useState(false)
37-
constonClickHandler=()=>{
38-
props.close()
39-
if(!loadedSolution){
40-
setLoadedSolution(true)
41-
props.onLoadSolution()
42-
}
43-
}
44-
return(
45-
<Buttontype="secondary"onClick={onClickHandler}disabled={loadedSolution}>
46-
Load Solution
47-
</Button>
48-
)
49-
}
50-
5129
typeNuxProps={
5230
onClose:()=>void
5331
onLoadSolution:()=>void
@@ -113,20 +91,6 @@ const NewUserExperienceTutorialCollapsible = (props: NuxProps) => {
11391
Read the tests. The tests can be found in the test directory and can be read in detail to help you
11492
understand what's failing.
11593
</li>
116-
<br/>
117-
<li>
118-
Still stuck? Load the solution. Each step in CodeRoad is stored as a Git commit - including the solution.
119-
Load the solution commit by pressing the button below.
120-
<br/>
121-
<br/>
122-
<LoadSolutionButton
123-
onLoadSolution={props.onLoadSolution}
124-
close={()=>{
125-
setExpandedKeys([])
126-
props.onClose()
127-
}}
128-
/>
129-
</li>
13094
</ol>
13195
</Panel>
13296
<Paneltitle="Contact">

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp