Skip to content

Commit 5476cec

Browse files
committed
refactor: code lint
1 parent 7c2c594 commit 5476cec

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

src/components/actions-sheet/ConfirmSheet.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* Created by leon<[email protected]> on 22/3/10.
3+
*/
14
import { Button } from '@src/components'
25
import { translate } from '@src/i18n'
36
import { SylCommon, useTheme } from '@src/theme'

src/components/common/Input.tsx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
1-
import React from 'react'
2-
import {
3-
TextInput,
4-
View,
5-
ViewPropTypes,
6-
TextInputProps as NativeTextInputProps,
7-
ViewStyle,
8-
TextStyle
9-
} from 'react-native'
10-
import { Text } from './Text'
111
import { useTheme } from '@src/theme'
122
import { ITheme } from '@src/types'
3+
import React from 'react'
4+
import { TextInput, TextInputProps as NativeTextInputProps, TextStyle, View, ViewStyle } from 'react-native'
5+
import { Text } from './Text'
136

147
export interface TextInputProps extends NativeTextInputProps {
158
label?: string

src/components/common/Text.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import React from 'react'
21
import { useTheme } from '@src/theme'
3-
import { Text as RNText, TextProps as NativeTextProps, StyleSheet, TextStyle } from 'react-native'
42
import { ITheme } from '@src/types'
53
import { validKey } from '@src/utils'
4+
import React from 'react'
5+
import { Text as RNText, TextProps as NativeTextProps, TextStyle } from 'react-native'
66

77
// Possible value for prop "type" for Text
88
const HEADING = 'heading'

0 commit comments

Comments
 (0)