Skip to content

Commit 41d67c9

Browse files
committed
prettier
1 parent 469cb3e commit 41d67c9

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/libs/ComponentUtils/index.native.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import type { AnimatedRef} from 'react-native-reanimated';
2-
import { dispatchCommand } from 'react-native-reanimated';
3-
import type { Component } from 'react';
1+
import type {Component} from 'react';
2+
import type {AnimatedRef} from 'react-native-reanimated';
3+
import {dispatchCommand} from 'react-native-reanimated';
44
import type {AccessibilityRoleForm, NewPasswordAutocompleteType, PasswordAutocompleteType} from './types';
55

66
const PASSWORD_AUTOCOMPLETE_TYPE: PasswordAutocompleteType = 'password';
@@ -12,7 +12,7 @@ const ACCESSIBILITY_ROLE_FORM: AccessibilityRoleForm = 'none';
1212
* that bypasses the event count check.
1313
*/
1414
function forceClearInput(animatedInputRef: AnimatedRef<Component>) {
15-
"worklet"
15+
'worklet';
1616

1717
dispatchCommand(animatedInputRef, 'clear');
1818
}

src/libs/ComponentUtils/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import type { AnimatedRef} from 'react-native-reanimated';
2-
import { setNativeProps } from 'react-native-reanimated';
3-
import type { Component } from 'react';
1+
import type {Component} from 'react';
2+
import type {AnimatedRef} from 'react-native-reanimated';
3+
import {setNativeProps} from 'react-native-reanimated';
44
import type {AccessibilityRoleForm, NewPasswordAutocompleteType, PasswordAutocompleteType} from './types';
55

66
/**
@@ -11,9 +11,9 @@ const NEW_PASSWORD_AUTOCOMPLETE_TYPE: NewPasswordAutocompleteType = 'new-passwor
1111
const ACCESSIBILITY_ROLE_FORM: AccessibilityRoleForm = 'form';
1212

1313
function forceClearInput(animatedInputRef: AnimatedRef<Component>) {
14-
"worklet"
14+
'worklet';
1515

1616
setNativeProps(animatedInputRef, {text: ''});
1717
}
1818

19-
export {PASSWORD_AUTOCOMPLETE_TYPE, ACCESSIBILITY_ROLE_FORM, NEW_PASSWORD_AUTOCOMPLETE_TYPE,forceClearInput};
19+
export {PASSWORD_AUTOCOMPLETE_TYPE, ACCESSIBILITY_ROLE_FORM, NEW_PASSWORD_AUTOCOMPLETE_TYPE, forceClearInput};

src/pages/home/report/ReportActionCompose/ReportActionCompose.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import useNetwork from '@hooks/useNetwork';
2323
import useThemeStyles from '@hooks/useThemeStyles';
2424
import useWindowDimensions from '@hooks/useWindowDimensions';
2525
import canFocusInputOnScreenFocus from '@libs/canFocusInputOnScreenFocus';
26+
import {forceClearInput} from '@libs/ComponentUtils';
2627
import * as DeviceCapabilities from '@libs/DeviceCapabilities';
2728
import {getDraftComment} from '@libs/DraftCommentUtils';
2829
import getModalState from '@libs/getModalState';
@@ -40,7 +41,6 @@ import ONYXKEYS from '@src/ONYXKEYS';
4041
import type * as OnyxTypes from '@src/types/onyx';
4142
import type * as OnyxCommon from '@src/types/onyx/OnyxCommon';
4243
import {isEmptyObject} from '@src/types/utils/EmptyObject';
43-
import { forceClearInput } from '@libs/ComponentUtils';
4444
import AttachmentPickerWithMenuItems from './AttachmentPickerWithMenuItems';
4545
import ComposerWithSuggestions from './ComposerWithSuggestions';
4646
import type {ComposerWithSuggestionsProps} from './ComposerWithSuggestions/ComposerWithSuggestions';
@@ -367,7 +367,7 @@ function ReportActionCompose({
367367
// We are setting the isCommentEmpty flag to true so the status of it will be in sync of the native text input state
368368
runOnJS(setIsCommentEmpty)(true);
369369
runOnJS(resetFullComposerSize)();
370-
forceClearInput(animatedRef)
370+
forceClearInput(animatedRef);
371371
runOnJS(submitForm)();
372372
}, [isSendDisabled, resetFullComposerSize, submitForm, animatedRef, isReportReadyForDisplay]);
373373

0 commit comments

Comments
 (0)