Skip to content

Commit

Permalink
remove growl
Browse files Browse the repository at this point in the history
  • Loading branch information
Nodebrute committed Aug 17, 2023
1 parent 49f9042 commit baf3ead
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/libs/actions/Link.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import Onyx from 'react-native-onyx';
import lodashGet from 'lodash/get';
import _ from 'underscore';
import ONYXKEYS from '../../ONYXKEYS';
import Growl from '../Growl';
import * as Localize from '../Localize';
import CONST from '../../CONST';
import asyncOpenURL from '../asyncOpenURL';
import * as API from '../API';
import * as Environment from '../Environment/Environment';
Expand All @@ -22,16 +19,6 @@ Onyx.connect({
callback: (val) => (currentUserEmail = lodashGet(val, 'email', '')),
});

/**
* @returns {Boolean}
*/
function showGrowlIfOffline() {
if (isNetworkOffline) {
Growl.show(Localize.translateLocal('session.offlineMessageRetry'), CONST.GROWL.WARNING);
}
return isNetworkOffline;
}

/**
* @param {String} [url] the url path
* @param {String} [shortLivedAuthToken]
Expand Down Expand Up @@ -60,10 +47,6 @@ function buildOldDotURL(url, shortLivedAuthToken) {
* @param {Boolean} shouldSkipCustomSafariLogic When true, we will use `Linking.openURL` even if the browser is Safari.
*/
function openExternalLink(url, shouldSkipCustomSafariLogic = false) {
if (showGrowlIfOffline()) {
return;
}

asyncOpenURL(Promise.resolve(), url, shouldSkipCustomSafariLogic);
}

Expand Down

0 comments on commit baf3ead

Please sign in to comment.