Skip to content

Commit

Permalink
fix: 린트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
pott-101 committed May 31, 2024
1 parent d39641b commit 0f40d52
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
13 changes: 10 additions & 3 deletions packages/vibrant-core/src/lib/TextInput/TextInput.native.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { forwardRef, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
import type { KeyboardTypeOptions, TextInputProps as RNTextInputProps } from 'react-native';
import { TextInput as RNTextInput, StyleSheet, NativeSyntheticEvent, TextInputKeyPressEventData } from 'react-native';
import type {
KeyboardTypeOptions,
NativeSyntheticEvent,
TextInputProps as RNTextInputProps,
TextInputKeyPressEventData,
} from 'react-native';
import { TextInput as RNTextInput, StyleSheet } from 'react-native';
import styled from '@emotion/native';
import { createShouldForwardProp } from '../createShouldForwardProp';
import { platform } from '../platform';
Expand Down Expand Up @@ -110,7 +115,9 @@ export const TextInput = forwardRef<TextInputRef, TextInputProps>(

onBlur?.();
}}
onKeyPress={(event: NativeSyntheticEvent<TextInputKeyPressEventData>) => onKeyPress?.({ key: event.nativeEvent.key, prevent: () => event.preventDefault() })}
onKeyPress={(event: NativeSyntheticEvent<TextInputKeyPressEventData>) =>
onKeyPress?.({ key: event.nativeEvent.key, prevent: () => event.preventDefault() })
}
onChangeText={(value: string) => {
const replacedValue = replaceValue({ pattern, value });

Expand Down
3 changes: 2 additions & 1 deletion packages/vibrant-core/src/lib/TextInput/TextInput.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { forwardRef, useEffect, useImperativeHandle, useMemo, useRef, useState, KeyboardEvent, FormEvent } from 'react';
import { forwardRef, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
import type { FormEvent, KeyboardEvent } from 'react';
import styled from '@emotion/styled';
import { createShouldForwardProp } from '../createShouldForwardProp';
import type { SystemProps, TextInputProps, TextInputRef } from './TextInputProps';
Expand Down

0 comments on commit 0f40d52

Please sign in to comment.