Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pasyukevich committed Jan 15, 2024
1 parent e0acc3b commit 6bbc2fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/AmountTextInput.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import type {StyleProp, TextStyle, ViewStyle} from 'react-native';
import type {NativeSyntheticEvent, StyleProp, TextInputSelectionChangeEventData, TextStyle, ViewStyle} from 'react-native';
import useThemeStyles from '@hooks/useThemeStyles';
import CONST from '@src/CONST';
import type {TextSelection} from './Composer/types';
Expand All @@ -20,7 +20,7 @@ type AmountTextInputProps = {
selection?: TextSelection;

/** Function to call when selection in text input is changed */
onSelectionChange?: () => void;
onSelectionChange?: (event: NativeSyntheticEvent<TextInputSelectionChangeEventData>) => void;

/** Style for the input */
style?: StyleProp<TextStyle>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ function BaseTextInputWithCurrencySymbol(

const amountTextInput = (
<AmountTextInput
/* @ts-expect-error TODO: Remove this once AmountTextInput (https://github.com/Expensify/App/issues/24999) is migrated to TypeScript. */
formattedAmount={formattedAmount}
onChangeAmount={setFormattedAmount}
placeholder={placeholder}
Expand Down
2 changes: 1 addition & 1 deletion src/components/TextInputWithCurrencySymbol/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type TextInputWithCurrencySymbolProps = {
selectedCurrencyCode: string;

/** Selection Object */
selection: TextSelection;
selection?: TextSelection;

/** Function to call when selection in text input is changed */
onSelectionChange?: (e: NativeSyntheticEvent<TextInputSelectionChangeEventData>) => void;
Expand Down

0 comments on commit 6bbc2fe

Please sign in to comment.