Skip to content

Commit

Permalink
Use withNetwork. propType comment
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaaron committed Oct 12, 2023
1 parent 5719736 commit 352d376
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/SearchPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -39,6 +40,7 @@ const propTypes = {

...withLocalizePropTypes,

/** Network info */
network: networkPropTypes,

/** Whether we are searching for reports in the server */
Expand Down Expand Up @@ -221,6 +223,7 @@ SearchPage.defaultProps = defaultProps;
export default compose(
withLocalize,
withWindowDimensions,
withNetwork(),
withOnyx({
reports: {
key: ONYXKEYS.COLLECTION.REPORT,
Expand All @@ -235,8 +238,5 @@ export default compose(
key: ONYXKEYS.IS_SEARCHING_FOR_REPORTS,
initWithStoredValues: false,
},
network: {
key: ONYXKEYS.NETWORK,
},
}),
)(SearchPage);

0 comments on commit 352d376

Please sign in to comment.