Skip to content

Commit d9d95a3

Browse files
chore: linting
1 parent b50d77c commit d9d95a3

17 files changed

+16
-20
lines changed

source/cli.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env node
22
import { render } from 'ink'
3-
import React from 'react'
43
import App from './app.js'
54

65
console.clear()

source/components/Ask.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Box, Text } from 'ink'
22
import TextInput from 'ink-text-input'
3-
import React, { type FC, useMemo, useState } from 'react'
3+
import { type FC, useMemo, useState } from 'react'
44
import { isAnswerConfirmed } from '../utils/utils.js'
55

66
interface Props {

source/components/Divider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import BaseDivider from 'ink-divider'
2-
import React, { type FC } from 'react'
2+
import type { FC } from 'react'
33

44
const Divider: FC<{ title: string }> = ({ title }) => (
55
<BaseDivider

source/components/MainTitle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import BigText from 'ink-big-text'
22
import Gradient from 'ink-gradient'
3-
import React, { type FC } from 'react'
3+
import type { FC } from 'react'
44

55
const MainTitle: FC = () => (
66
<Gradient colors={['#ff438c', '#bb1d79', '#8b46a4', '#6a2581']}>

source/components/Multiselect/MultiSelect.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Box, useInput } from 'ink'
2-
import React, { useCallback, useState } from 'react'
2+
import { createElement, useCallback, useState } from 'react'
33
import CheckBox from './components/Checkbox.js'
44
import Indicator from './components/Indicator.js'
55
import ItemComponent from './components/Item.js'
@@ -113,9 +113,9 @@ const MultiSelect = <T,>({
113113

114114
return (
115115
<Box key={key}>
116-
{React.createElement(indicatorComponent, { isHighlighted })}
117-
{React.createElement(checkboxComponent, { isSelected })}
118-
{React.createElement(itemComponent, {
116+
{createElement(indicatorComponent, { isHighlighted })}
117+
{createElement(checkboxComponent, { isSelected })}
118+
{createElement(itemComponent, {
119119
...item,
120120
isHighlighted,
121121
})}

source/components/Multiselect/components/Checkbox.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import figures from 'figures'
22
import { Box, Text } from 'ink'
3-
import React from 'react'
43

54
type CheckBoxProps = {
65
isSelected: boolean

source/components/Multiselect/components/Indicator.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import figures from 'figures'
22
import { Box, Text } from 'ink'
3-
import React from 'react'
43

54
type IndicatorProps = {
65
isHighlighted: boolean

source/components/Multiselect/components/Item.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Text } from 'ink'
2-
import React from 'react'
32

43
type ItemProps = {
54
isHighlighted: boolean

source/components/steps/CloneRepo/CloneRepo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { type FC } from 'react'
1+
import type { FC } from 'react'
22
import Divider from '../../Divider.js'
33
import Commands from './Commands.js'
44

source/components/steps/CloneRepo/Commands.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { join } from 'node:path'
22
import * as process from 'node:process'
33
import { Box, Text } from 'ink'
44
import { Script, Spawn } from 'ink-spawn'
5-
import React, { type FC } from 'react'
5+
import type { FC } from 'react'
66
import { repoUrl } from '../../../constants/config.js'
77

88
interface Props {

0 commit comments

Comments
 (0)