From 8c946407b60a18847b777c38732f8cdf7af0d7e0 Mon Sep 17 00:00:00 2001 From: Andrew Rosiclair Date: Thu, 22 Sep 2022 17:35:12 -0400 Subject: [PATCH] remove unused onyx connections --- src/components/RoomNameInput.js | 41 ++++----------------------------- 1 file changed, 5 insertions(+), 36 deletions(-) diff --git a/src/components/RoomNameInput.js b/src/components/RoomNameInput.js index a27a83f42327..95e016cd6a18 100644 --- a/src/components/RoomNameInput.js +++ b/src/components/RoomNameInput.js @@ -1,9 +1,6 @@ import React, {Component} from 'react'; import PropTypes from 'prop-types'; -import {withOnyx} from 'react-native-onyx'; import CONST from '../CONST'; -import ONYXKEYS from '../ONYXKEYS'; -import compose from '../libs/compose'; import withLocalize, {withLocalizePropTypes} from './withLocalize'; import TextInput from './TextInput'; @@ -22,26 +19,6 @@ const propTypes = { ...withLocalizePropTypes, - /* Onyx Props */ - - /** All reports shared with the user */ - reports: PropTypes.shape({ - /** The report name */ - reportName: PropTypes.string, - - /** ID of the report */ - reportID: PropTypes.number, - }).isRequired, - - /** The policies which the user has access to and which the report could be tied to */ - policies: PropTypes.shape({ - /** The policy name */ - name: PropTypes.string, - - /** ID of the policy */ - id: PropTypes.string, - }).isRequired, - /** A ref forwarded to the TextInput */ forwardedRef: PropTypes.func, }; @@ -109,17 +86,9 @@ class RoomNameInput extends Component { RoomNameInput.propTypes = propTypes; RoomNameInput.defaultProps = defaultProps; -export default compose( - withLocalize, - withOnyx({ - reports: { - key: ONYXKEYS.COLLECTION.REPORT, - }, - policies: { - key: ONYXKEYS.COLLECTION.POLICY, - }, - }), -)(React.forwardRef((props, ref) => ( +export default withLocalize( + React.forwardRef((props, ref) => ( // eslint-disable-next-line react/jsx-props-no-spreading - -))); + + )), +);