diff options
author | 2019-08-21 09:39:39 +0200 | |
---|---|---|
committer | 2019-08-21 09:39:39 +0200 | |
commit | c4768a221f93d534f4d0454414cdf073af8a2356 (patch) | |
tree | 77fdf9eb3cbfa72c8fe40e45c88af61299004609 /src/features/workspaces/components | |
parent | Update dev-app-update.yml (diff) | |
download | ferdium-app-c4768a221f93d534f4d0454414cdf073af8a2356.tar.gz ferdium-app-c4768a221f93d534f4d0454414cdf073af8a2356.tar.zst ferdium-app-c4768a221f93d534f4d0454414cdf073af8a2356.zip |
Remove analytics
Diffstat (limited to 'src/features/workspaces/components')
3 files changed, 0 insertions, 12 deletions
diff --git a/src/features/workspaces/components/CreateWorkspaceForm.js b/src/features/workspaces/components/CreateWorkspaceForm.js index cddbb2b04..528376474 100644 --- a/src/features/workspaces/components/CreateWorkspaceForm.js +++ b/src/features/workspaces/components/CreateWorkspaceForm.js | |||
@@ -6,7 +6,6 @@ import { Input, Button } from '@meetfranz/forms'; | |||
6 | import injectSheet from 'react-jss'; | 6 | import injectSheet from 'react-jss'; |
7 | import Form from '../../../lib/Form'; | 7 | import Form from '../../../lib/Form'; |
8 | import { required } from '../../../helpers/validation-helpers'; | 8 | import { required } from '../../../helpers/validation-helpers'; |
9 | import { gaEvent } from '../../../lib/analytics'; | ||
10 | import { GA_CATEGORY_WORKSPACES, workspaceStore } from '../index'; | 9 | import { GA_CATEGORY_WORKSPACES, workspaceStore } from '../index'; |
11 | 10 | ||
12 | const messages = defineMessages({ | 11 | const messages = defineMessages({ |
@@ -66,7 +65,6 @@ class CreateWorkspaceForm extends Component { | |||
66 | const { onSubmit } = this.props; | 65 | const { onSubmit } = this.props; |
67 | const values = f.values(); | 66 | const values = f.values(); |
68 | onSubmit(values); | 67 | onSubmit(values); |
69 | gaEvent(GA_CATEGORY_WORKSPACES, 'create', values.name); | ||
70 | }, | 68 | }, |
71 | }); | 69 | }); |
72 | } | 70 | } |
diff --git a/src/features/workspaces/components/EditWorkspaceForm.js b/src/features/workspaces/components/EditWorkspaceForm.js index e602ebd5a..4fb67dfb4 100644 --- a/src/features/workspaces/components/EditWorkspaceForm.js +++ b/src/features/workspaces/components/EditWorkspaceForm.js | |||
@@ -12,7 +12,6 @@ import Form from '../../../lib/Form'; | |||
12 | import { required } from '../../../helpers/validation-helpers'; | 12 | import { required } from '../../../helpers/validation-helpers'; |
13 | import WorkspaceServiceListItem from './WorkspaceServiceListItem'; | 13 | import WorkspaceServiceListItem from './WorkspaceServiceListItem'; |
14 | import Request from '../../../stores/lib/Request'; | 14 | import Request from '../../../stores/lib/Request'; |
15 | import { gaEvent } from '../../../lib/analytics'; | ||
16 | import { GA_CATEGORY_WORKSPACES } from '../index'; | 15 | import { GA_CATEGORY_WORKSPACES } from '../index'; |
17 | 16 | ||
18 | const messages = defineMessages({ | 17 | const messages = defineMessages({ |
@@ -103,7 +102,6 @@ class EditWorkspaceForm extends Component { | |||
103 | const { onSave } = this.props; | 102 | const { onSave } = this.props; |
104 | const values = f.values(); | 103 | const values = f.values(); |
105 | onSave(values); | 104 | onSave(values); |
106 | gaEvent(GA_CATEGORY_WORKSPACES, 'save'); | ||
107 | }, | 105 | }, |
108 | onError: async () => {}, | 106 | onError: async () => {}, |
109 | }); | 107 | }); |
@@ -112,7 +110,6 @@ class EditWorkspaceForm extends Component { | |||
112 | delete() { | 110 | delete() { |
113 | const { onDelete } = this.props; | 111 | const { onDelete } = this.props; |
114 | onDelete(); | 112 | onDelete(); |
115 | gaEvent(GA_CATEGORY_WORKSPACES, 'delete'); | ||
116 | } | 113 | } |
117 | 114 | ||
118 | toggleService(service) { | 115 | toggleService(service) { |
diff --git a/src/features/workspaces/components/WorkspaceDrawer.js b/src/features/workspaces/components/WorkspaceDrawer.js index 684e50dd0..7a36285c2 100644 --- a/src/features/workspaces/components/WorkspaceDrawer.js +++ b/src/features/workspaces/components/WorkspaceDrawer.js | |||
@@ -10,7 +10,6 @@ import ReactTooltip from 'react-tooltip'; | |||
10 | import WorkspaceDrawerItem from './WorkspaceDrawerItem'; | 10 | import WorkspaceDrawerItem from './WorkspaceDrawerItem'; |
11 | import { workspaceActions } from '../actions'; | 11 | import { workspaceActions } from '../actions'; |
12 | import { GA_CATEGORY_WORKSPACES, workspaceStore } from '../index'; | 12 | import { GA_CATEGORY_WORKSPACES, workspaceStore } from '../index'; |
13 | import { gaEvent } from '../../../lib/analytics'; | ||
14 | 13 | ||
15 | const messages = defineMessages({ | 14 | const messages = defineMessages({ |
16 | headline: { | 15 | headline: { |
@@ -154,7 +153,6 @@ class WorkspaceDrawer extends Component { | |||
154 | className={classes.workspacesSettingsButton} | 153 | className={classes.workspacesSettingsButton} |
155 | onClick={() => { | 154 | onClick={() => { |
156 | workspaceActions.openWorkspaceSettings(); | 155 | workspaceActions.openWorkspaceSettings(); |
157 | gaEvent(GA_CATEGORY_WORKSPACES, 'settings', 'drawerHeadline'); | ||
158 | }} | 156 | }} |
159 | data-tip={`${intl.formatMessage(messages.workspacesSettingsTooltip)}`} | 157 | data-tip={`${intl.formatMessage(messages.workspacesSettingsTooltip)}`} |
160 | > | 158 | > |
@@ -176,7 +174,6 @@ class WorkspaceDrawer extends Component { | |||
176 | icon="mdiStar" | 174 | icon="mdiStar" |
177 | onClick={() => { | 175 | onClick={() => { |
178 | onUpgradeAccountClick(); | 176 | onUpgradeAccountClick(); |
179 | gaEvent('User', 'upgrade', 'workspaceDrawer'); | ||
180 | }} | 177 | }} |
181 | /> | 178 | /> |
182 | ) : ( | 179 | ) : ( |
@@ -187,7 +184,6 @@ class WorkspaceDrawer extends Component { | |||
187 | icon="mdiPlusBox" | 184 | icon="mdiPlusBox" |
188 | onClick={() => { | 185 | onClick={() => { |
189 | workspaceActions.openWorkspaceSettings(); | 186 | workspaceActions.openWorkspaceSettings(); |
190 | gaEvent(GA_CATEGORY_WORKSPACES, 'add', 'drawerPremiumCta'); | ||
191 | }} | 187 | }} |
192 | /> | 188 | /> |
193 | )} | 189 | )} |
@@ -199,7 +195,6 @@ class WorkspaceDrawer extends Component { | |||
199 | onClick={() => { | 195 | onClick={() => { |
200 | workspaceActions.deactivate(); | 196 | workspaceActions.deactivate(); |
201 | workspaceActions.toggleWorkspaceDrawer(); | 197 | workspaceActions.toggleWorkspaceDrawer(); |
202 | gaEvent(GA_CATEGORY_WORKSPACES, 'switch', 'drawer'); | ||
203 | }} | 198 | }} |
204 | services={getServicesForWorkspace(null)} | 199 | services={getServicesForWorkspace(null)} |
205 | isActive={actualWorkspace == null} | 200 | isActive={actualWorkspace == null} |
@@ -213,7 +208,6 @@ class WorkspaceDrawer extends Component { | |||
213 | if (actualWorkspace === workspace) return; | 208 | if (actualWorkspace === workspace) return; |
214 | workspaceActions.activate({ workspace }); | 209 | workspaceActions.activate({ workspace }); |
215 | workspaceActions.toggleWorkspaceDrawer(); | 210 | workspaceActions.toggleWorkspaceDrawer(); |
216 | gaEvent(GA_CATEGORY_WORKSPACES, 'switch', 'drawer'); | ||
217 | }} | 211 | }} |
218 | onContextMenuEditClick={() => workspaceActions.edit({ workspace })} | 212 | onContextMenuEditClick={() => workspaceActions.edit({ workspace })} |
219 | services={getServicesForWorkspace(workspace)} | 213 | services={getServicesForWorkspace(workspace)} |
@@ -223,7 +217,6 @@ class WorkspaceDrawer extends Component { | |||
223 | className={classes.addNewWorkspaceLabel} | 217 | className={classes.addNewWorkspaceLabel} |
224 | onClick={() => { | 218 | onClick={() => { |
225 | workspaceActions.openWorkspaceSettings(); | 219 | workspaceActions.openWorkspaceSettings(); |
226 | gaEvent(GA_CATEGORY_WORKSPACES, 'add', 'drawerAddLabel'); | ||
227 | }} | 220 | }} |
228 | > | 221 | > |
229 | <Icon | 222 | <Icon |