Skip to content

Commit

Permalink
fix: change useOnNetworkReconnect to useNetwork
Browse files Browse the repository at this point in the history
  • Loading branch information
koko57 committed Jul 26, 2023
1 parent b34b031 commit 4852ccb
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 4852ccb

Please sign in to comment.