@@ -28,7 +28,7 @@ const CloneRepo: FC<Props> = ({ projectName, onCompletion }) => {
2828 < Script >
2929 { canShowStep ( currentStep , 1 ) && (
3030 < Box columnGap = { 1 } >
31- < Text color = { 'whiteBright' } > Cloning dAppBooster in </ Text >
31+ < Text color = { 'whiteBright' } > Cloning dAppBooster in</ Text >
3232 < Text italic > { projectName } </ Text >
3333 </ Box >
3434 ) }
@@ -38,9 +38,7 @@ const CloneRepo: FC<Props> = ({ projectName, onCompletion }) => {
3838 successText = { 'Done!' }
3939 failureText = { `Failed to clone the project, check if a folder called "${ projectName } " already exists and your read/write permissions...` }
4040 runningText = { 'Working...' }
41- onCompletion = { ( ) => {
42- finishStep ( )
43- } }
41+ onCompletion = { ( ) => finishStep ( ) }
4442 command = "git"
4543 args = { [ 'clone' , '--depth' , '1' , '--no-checkout' , repoUrl , projectName ] }
4644 />
@@ -54,9 +52,7 @@ const CloneRepo: FC<Props> = ({ projectName, onCompletion }) => {
5452 runningText = { 'Working...' }
5553 successText = { 'Done!' }
5654 failureText = { 'Error...' }
57- onCompletion = { ( ) => {
58- finishStep ( )
59- } }
55+ onCompletion = { ( ) => finishStep ( ) }
6056 />
6157 { canShowStep ( currentStep , 3 ) && < Text color = { 'whiteBright' } > Checking out latest tag</ Text > }
6258 < Spawn
@@ -66,9 +62,7 @@ const CloneRepo: FC<Props> = ({ projectName, onCompletion }) => {
6662 args = { [ 'checkout $(git describe --tags `git rev-list --tags --max-count=1`)' ] }
6763 successText = "Done!"
6864 failureText = { 'Error...' }
69- onCompletion = { ( ) => {
70- finishStep ( )
71- } }
65+ onCompletion = { ( ) => finishStep ( ) }
7266 />
7367 { canShowStep ( currentStep , 4 ) && < Text color = { 'whiteBright' } > Removing .git folder</ Text > }
7468 < Spawn
@@ -78,9 +72,7 @@ const CloneRepo: FC<Props> = ({ projectName, onCompletion }) => {
7872 args = { [ '-rf' , '.git' ] }
7973 successText = "Done!"
8074 failureText = { 'Error...' }
81- onCompletion = { ( ) => {
82- finishStep ( )
83- } }
75+ onCompletion = { ( ) => finishStep ( ) }
8476 />
8577 { canShowStep ( currentStep , 5 ) && (
8678 < Text color = { 'whiteBright' } > Initializing Git repository</ Text >
0 commit comments