diff --git a/src/js/components/Widgets/TooltipIcon.jsx b/src/js/components/Widgets/TooltipIcon.jsx
index e52a65182..1e7713146 100644
--- a/src/js/components/Widgets/TooltipIcon.jsx
+++ b/src/js/components/Widgets/TooltipIcon.jsx
@@ -3,17 +3,20 @@ import { Tooltip } from '@mui/material';
import styled from 'styled-components';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
+import isMobileScreenSize from '../../common/utils/isMobileScreenSize';
class TooltipIcon extends Component {
render () {
return (
-
-
-
+ {isMobileScreenSize() ? () : (
+
+
+
+ )}
);
}
diff --git a/src/js/pages/Friends/Friends.jsx b/src/js/pages/Friends/Friends.jsx
index d2fd24f6b..12e2571ac 100755
--- a/src/js/pages/Friends/Friends.jsx
+++ b/src/js/pages/Friends/Friends.jsx
@@ -4,6 +4,7 @@ import PropTypes from 'prop-types';
import React, { Component, Suspense } from 'react';
import { Helmet } from 'react-helmet-async';
import styled from 'styled-components';
+import isMobileScreenSize from '../../common/utils/isMobileScreenSize';
import FriendsCurrent from './FriendsCurrent';
import FriendInvitationsSentByMe from './FriendInvitationsSentByMe';
import InviteByEmail from './InviteByEmail';
@@ -523,7 +524,11 @@ class Friends extends Component {
Invite Friends
-
+ <>
+ {isMobileScreenSize() ? () : (
+
+ )}
+ >
diff --git a/src/js/pages/Friends/InviteByEmail.jsx b/src/js/pages/Friends/InviteByEmail.jsx
index d9b43be61..6922448d0 100644
--- a/src/js/pages/Friends/InviteByEmail.jsx
+++ b/src/js/pages/Friends/InviteByEmail.jsx
@@ -1,6 +1,7 @@
import React, { Component } from 'react';
import styled from 'styled-components';
import AnalyticsActions from '../../actions/AnalyticsActions';
+import isMobileScreenSize from '../../common/utils/isMobileScreenSize';
import { renderLog } from '../../common/utils/logging';
import AddFriendsByEmail from '../../components/Friends/AddFriendsByEmail';
import VoterStore from '../../stores/VoterStore';
@@ -26,7 +27,9 @@ export default class InviteByEmail extends Component {
Invite Friends
-
+ {isMobileScreenSize() ? () : (
+
+ )}
diff --git a/src/js/utils/initializeFacebookSDK.js b/src/js/utils/initializeFacebookSDK.js
index e0a35a723..be480c964 100644
--- a/src/js/utils/initializeFacebookSDK.js
+++ b/src/js/utils/initializeFacebookSDK.js
@@ -27,17 +27,18 @@ const initializeFacebookSDK = () => {
const { FB } = window;
console.log('const { FB } = window ------------ FB:', FB);
- FB.init({
- appId: webAppConfig.FACEBOOK_APP_ID,
- autoLogAppEvents: true,
- xfbml: true,
- version: 'v15.0', // Facebook JavaScript SDK - Facebook Version
- status: true, // set this status to true, this will fix the popup blocker issue
- });
-
- console.log('initializeFacebookSDK FB.init has been called');
- // This initial call simply pre-loads the current facebook login status to local FacebookSignedInData object
- FacebookSignedInData.setConnectedStatus(false, false, false, null);
+ if (webAppConfig.ENABLE_FACEBOOK) {
+ FB.init({
+ appId: webAppConfig.FACEBOOK_APP_ID,
+ autoLogAppEvents: true,
+ xfbml: true,
+ version: 'v15.0', // Facebook JavaScript SDK - Facebook Version
+ status: true, // set this status to true, this will fix the popup blocker issue
+ });
+ console.log('initializeFacebookSDK FB.init has been called');
+ // This initial call simply pre-loads the current facebook login status to local FacebookSignedInData object
+ FacebookSignedInData.setConnectedStatus(false, false, false, null);
+ }
};
}
};