Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kowczarz committed Sep 11, 2023
1 parent 74f69a5 commit b6c8a62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useForm/FormProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, {createRef, useCallback, useRef, useState} from 'react';
import _ from 'underscore';
import {withOnyx} from 'react-native-onyx';
import PropTypes from 'prop-types';
import lodashGet from 'lodash/get';
import Visibility from '../../libs/Visibility';
import * as FormActions from '../../libs/actions/FormActions';
import FormContext from './FormContext';
Expand All @@ -11,7 +12,6 @@ import withLocalize, {withLocalizePropTypes} from '../../components/withLocalize
import {withNetwork} from '../../components/OnyxProvider';
import stylePropTypes from '../../styles/stylePropTypes';
import networkPropTypes from '../../components/networkPropTypes';
import lodashGet from 'lodash/get';

const propTypes = {
/** A unique Onyx key identifying the form */
Expand Down
2 changes: 2 additions & 0 deletions src/hooks/useForm/InputWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ import FormContext from './FormContext';
const propTypes = {
RenderInput: PropTypes.node.isRequired,
inputID: PropTypes.string.isRequired,
valueType: PropTypes.string,
forwardedRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({current: PropTypes.instanceOf(React.Component)})]),
};

const defaultProps = {
forwardedRef: undefined,
valueType: 'string',
};

function InputWrapper(props) {
Expand Down

0 comments on commit b6c8a62

Please sign in to comment.