1- import { join } from 'node:path'
1+ import { join } from 'node:path'
22import * as process from 'node:process'
3- import { Box , Text } from 'ink'
4- import { Script , Spawn } from 'ink-spawn'
5- import React , { useState , type FC } from 'react'
6- import { repoUrl } from './config.js'
7- import { canShowStep } from './utils.js'
3+ import { Box , Text } from 'ink'
4+ import { Script , Spawn } from 'ink-spawn'
5+ import React , { useState , type FC } from 'react'
6+ import { repoUrl } from './config.js'
7+ import { canShowStep } from './utils.js'
88
99interface Props {
1010 projectName : string
@@ -14,7 +14,7 @@ interface Props {
1414/**
1515 * @description Clone the repository
1616 */
17- const CloneRepo : FC < Props > = ( { projectName, onCompletion} ) => {
17+ const CloneRepo : FC < Props > = ( { projectName, onCompletion } ) => {
1818 const projectDir = join ( process . cwd ( ) , projectName )
1919 const [ currentStep , setCurrentStep ] = useState ( 1 )
2020
@@ -82,7 +82,9 @@ const CloneRepo: FC<Props> = ({projectName, onCompletion}) => {
8282 finishStep ( )
8383 } }
8484 />
85- { canShowStep ( currentStep , 5 ) && < Text color = { 'whiteBright' } > Initializing Git repository</ Text > }
85+ { canShowStep ( currentStep , 5 ) && (
86+ < Text color = { 'whiteBright' } > Initializing Git repository</ Text >
87+ ) }
8688 < Spawn
8789 shell
8890 cwd = { projectDir }
0 commit comments