Skip to content

Commit

Permalink
Merge pull request #23620 from Expensify/beaman-fixLintError
Browse files Browse the repository at this point in the history
Use new network hook
  • Loading branch information
Beamanator authored Jul 26, 2023
2 parents 23a8a34 + 8db79cc commit 1fac96b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/workspace/WorkspaceInvitePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import FullPageNotFoundView from '../../components/BlockingViews/FullPageNotFoun
import ROUTES from '../../ROUTES';
import * as Browser from '../../libs/Browser';
import * as PolicyUtils from '../../libs/PolicyUtils';
import useOnNetworkReconnect from '../../hooks/useOnNetworkReconnect';
import useNetwork from '../../hooks/useNetwork';
import useLocalize from '../../hooks/useLocalize';

const personalDetailsPropTypes = PropTypes.shape({
Expand Down Expand Up @@ -78,7 +78,7 @@ function WorkspaceInvitePage(props) {
// eslint-disable-next-line react-hooks/exhaustive-deps -- policyID changes remount the component
}, []);

useOnNetworkReconnect(openWorkspaceInvitePage);
useNetwork({onReconnect: openWorkspaceInvitePage});

useEffect(() => {
const inviteOptions = OptionsListUtils.getMemberInviteOptions(
Expand Down

0 comments on commit 1fac96b

Please sign in to comment.