Skip to content

Commit

Permalink
fix prettier and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cdOut committed Oct 30, 2023
1 parent 7620e4f commit 055d5da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Form/InputWrapper.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import PropTypes from 'prop-types';
import React, {forwardRef, useContext} from 'react';
import refPropTypes from '@components/refPropTypes';
import FormContext from './FormContext';
import refPropTypes from '../refPropTypes';

const propTypes = {
InputComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.elementType]).isRequired,
Expand Down
5 changes: 3 additions & 2 deletions src/pages/tasks/NewTaskTitlePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import PropTypes from 'prop-types';
import React from 'react';
import {View} from 'react-native';
import {withOnyx} from 'react-native-onyx';
import Form from '@components/Form';
import FormProvider from '@components/Form/FormProvider';
import InputWrapperWithRef from '@components/Form/InputWrapper';
import HeaderWithBackButton from '@components/HeaderWithBackButton';
import ScreenWrapper from '@components/ScreenWrapper';
import TextInput from '@components/TextInput';
Expand Down Expand Up @@ -88,7 +89,7 @@ function NewTaskTitlePage(props) {
enabledWhenOffline
>
<View style={styles.mb5}>
<InputWrapper
<InputWrapperWithRef
InputComponent={TextInput}
accessibilityRole={CONST.ACCESSIBILITY_ROLE.TEXT}
defaultValue={props.task.title}
Expand Down

0 comments on commit 055d5da

Please sign in to comment.