Skip to content

Commit 3f607cf

Browse files
refactor: installation items name
1 parent cc934d4 commit 3f607cf

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

source/import/Step3.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Divider from 'ink-divider'
33
import SelectInput from 'ink-select-input'
44
import React, { useState, type FC } from 'react'
55

6-
type Installation = 'full' | 'custom'
6+
export type Installation = 'full' | 'custom'
77

88
export interface Item {
99
label: string
@@ -15,6 +15,17 @@ interface Props {
1515
onSelect: (item: Item) => void
1616
}
1717

18+
const installationTypeItems: Array<Item> = [
19+
{
20+
label: 'Full',
21+
value: 'full',
22+
},
23+
{
24+
label: 'Custom',
25+
value: 'custom',
26+
},
27+
]
28+
1829
const Step3: FC<Props> = ({ onCompletion, onSelect }) => {
1930
const [isFocused, setIsFocused] = useState(true)
2031

@@ -24,17 +35,6 @@ const Step3: FC<Props> = ({ onCompletion, onSelect }) => {
2435
setIsFocused(false)
2536
}
2637

27-
const items: Array<Item> = [
28-
{
29-
label: 'Full',
30-
value: 'full',
31-
},
32-
{
33-
label: 'Custom',
34-
value: 'custom',
35-
},
36-
]
37-
3838
return (
3939
<>
4040
<Divider
@@ -56,7 +56,7 @@ const Step3: FC<Props> = ({ onCompletion, onSelect }) => {
5656
</Text>
5757
)}
5858
isFocused={isFocused}
59-
items={items}
59+
items={installationTypeItems}
6060
onSelect={handleSelect}
6161
/>
6262
</>

0 commit comments

Comments
 (0)