diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/layout/Sidebar.js | 2 | ||||
-rw-r--r-- | src/components/ui/PremiumFeatureContainer/index.js | 5 |
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'; | |||
7 | import Tabbar from '../services/tabs/Tabbar'; | 7 | import Tabbar from '../services/tabs/Tabbar'; |
8 | import { ctrlKey } from '../../environment'; | 8 | import { ctrlKey } from '../../environment'; |
9 | import { GA_CATEGORY_WORKSPACES, workspaceStore } from '../../features/workspaces'; | 9 | import { GA_CATEGORY_WORKSPACES, workspaceStore } from '../../features/workspaces'; |
10 | import { gaEvent } from '../../lib/analytics'; | ||
11 | 10 | ||
12 | const messages = defineMessages({ | 11 | const 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'; | |||
9 | import UserStore from '../../../stores/UserStore'; | 9 | import UserStore from '../../../stores/UserStore'; |
10 | 10 | ||
11 | import styles from './styles'; | 11 | import styles from './styles'; |
12 | import { gaEvent } from '../../../lib/analytics'; | ||
13 | 12 | ||
14 | const messages = defineMessages({ | 13 | const 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)} |