From 352d376521fe44135f693fecd19a8661fc87f776 Mon Sep 17 00:00:00 2001 From: Marc Glasser Date: Thu, 12 Oct 2023 09:10:38 -1000 Subject: [PATCH] Use withNetwork. propType comment --- src/pages/SearchPage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/SearchPage.js b/src/pages/SearchPage.js index 12a71c456821..272fb30de858 100755 --- a/src/pages/SearchPage.js +++ b/src/pages/SearchPage.js @@ -21,6 +21,7 @@ import personalDetailsPropType from './personalDetailsPropType'; import reportPropTypes from './reportPropTypes'; import Performance from '../libs/Performance'; import networkPropTypes from '../components/networkPropTypes'; +import {withNetwork} from '../components/OnyxProvider'; const propTypes = { /* Onyx Props */ @@ -39,6 +40,7 @@ const propTypes = { ...withLocalizePropTypes, + /** Network info */ network: networkPropTypes, /** Whether we are searching for reports in the server */ @@ -221,6 +223,7 @@ SearchPage.defaultProps = defaultProps; export default compose( withLocalize, withWindowDimensions, + withNetwork(), withOnyx({ reports: { key: ONYXKEYS.COLLECTION.REPORT, @@ -235,8 +238,5 @@ export default compose( key: ONYXKEYS.IS_SEARCHING_FOR_REPORTS, initWithStoredValues: false, }, - network: { - key: ONYXKEYS.NETWORK, - }, }), )(SearchPage);