aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorLibravatar vantezzen <properly@protonmail.com>2019-08-21 09:39:39 +0200
committerLibravatar vantezzen <properly@protonmail.com>2019-08-21 09:39:39 +0200
commitc4768a221f93d534f4d0454414cdf073af8a2356 (patch)
tree77fdf9eb3cbfa72c8fe40e45c88af61299004609 /src/components
parentUpdate dev-app-update.yml (diff)
downloadferdium-app-c4768a221f93d534f4d0454414cdf073af8a2356.tar.gz
ferdium-app-c4768a221f93d534f4d0454414cdf073af8a2356.tar.zst
ferdium-app-c4768a221f93d534f4d0454414cdf073af8a2356.zip
Remove analytics
Diffstat (limited to 'src/components')
-rw-r--r--src/components/layout/Sidebar.js2
-rw-r--r--src/components/ui/PremiumFeatureContainer/index.js5
2 files changed, 0 insertions, 7 deletions
diff --git a/src/components/layout/Sidebar.js b/src/components/layout/Sidebar.js
index 36c1f2e39..f43bc0b58 100644
--- a/src/components/layout/Sidebar.js
+++ b/src/components/layout/Sidebar.js
@@ -7,7 +7,6 @@ import { observer } from 'mobx-react';
7import Tabbar from '../services/tabs/Tabbar'; 7import Tabbar from '../services/tabs/Tabbar';
8import { ctrlKey } from '../../environment'; 8import { ctrlKey } from '../../environment';
9import { GA_CATEGORY_WORKSPACES, workspaceStore } from '../../features/workspaces'; 9import { GA_CATEGORY_WORKSPACES, workspaceStore } from '../../features/workspaces';
10import { gaEvent } from '../../lib/analytics';
11 10
12const messages = defineMessages({ 11const messages = defineMessages({
13 settings: { 12 settings: {
@@ -96,7 +95,6 @@ export default @observer class Sidebar extends Component {
96 onClick={() => { 95 onClick={() => {
97 toggleWorkspaceDrawer(); 96 toggleWorkspaceDrawer();
98 this.updateToolTip(); 97 this.updateToolTip();
99 gaEvent(GA_CATEGORY_WORKSPACES, 'toggleDrawer', 'sidebar');
100 }} 98 }}
101 className={`sidebar__button sidebar__button--workspaces ${isWorkspaceDrawerOpen ? 'is-active' : ''}`} 99 className={`sidebar__button sidebar__button--workspaces ${isWorkspaceDrawerOpen ? 'is-active' : ''}`}
102 data-tip={`${intl.formatMessage(workspaceToggleMessage)} (${ctrlKey}+D)`} 100 data-tip={`${intl.formatMessage(workspaceToggleMessage)} (${ctrlKey}+D)`}
diff --git a/src/components/ui/PremiumFeatureContainer/index.js b/src/components/ui/PremiumFeatureContainer/index.js
index 3c1e0fac3..08553b32a 100644
--- a/src/components/ui/PremiumFeatureContainer/index.js
+++ b/src/components/ui/PremiumFeatureContainer/index.js
@@ -9,7 +9,6 @@ import { oneOrManyChildElements } from '../../../prop-types';
9import UserStore from '../../../stores/UserStore'; 9import UserStore from '../../../stores/UserStore';
10 10
11import styles from './styles'; 11import styles from './styles';
12import { gaEvent } from '../../../lib/analytics';
13 12
14const messages = defineMessages({ 13const messages = defineMessages({
15 action: { 14 action: {
@@ -60,10 +59,6 @@ class PremiumFeatureContainer extends Component {
60 type="button" 59 type="button"
61 onClick={() => { 60 onClick={() => {
62 actions.ui.openSettings({ path: 'user' }); 61 actions.ui.openSettings({ path: 'user' });
63 if (gaEventInfo) {
64 const { category, event, label } = gaEventInfo;
65 gaEvent(category, event, label);
66 }
67 }} 62 }}
68 > 63 >
69 {intl.formatMessage(messages.action)} 64 {intl.formatMessage(messages.action)}