diff options
Diffstat (limited to 'src/features/announcements/components/AnnouncementScreen.js')
-rw-r--r-- | src/features/announcements/components/AnnouncementScreen.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/features/announcements/components/AnnouncementScreen.js b/src/features/announcements/components/AnnouncementScreen.js index 03bd5ba41..38de2dbc8 100644 --- a/src/features/announcements/components/AnnouncementScreen.js +++ b/src/features/announcements/components/AnnouncementScreen.js | |||
@@ -8,7 +8,6 @@ import { Button } from '@meetfranz/forms'; | |||
8 | 8 | ||
9 | import { announcementsStore } from '../index'; | 9 | import { announcementsStore } from '../index'; |
10 | import UIStore from '../../../stores/UIStore'; | 10 | import UIStore from '../../../stores/UIStore'; |
11 | import { gaEvent } from '../../../lib/analytics'; | ||
12 | 11 | ||
13 | const renderer = new marked.Renderer(); | 12 | const renderer = new marked.Renderer(); |
14 | 13 | ||
@@ -19,7 +18,7 @@ const markedOptions = { sanitize: true, renderer }; | |||
19 | const messages = defineMessages({ | 18 | const messages = defineMessages({ |
20 | headline: { | 19 | headline: { |
21 | id: 'feature.announcements.changelog.headline', | 20 | id: 'feature.announcements.changelog.headline', |
22 | defaultMessage: '!!!Changes in Franz {version}', | 21 | defaultMessage: '!!!Changes in Ferdi {version}', |
23 | }, | 22 | }, |
24 | }); | 23 | }); |
25 | 24 | ||
@@ -228,9 +227,7 @@ class AnnouncementScreen extends Component { | |||
228 | <Button | 227 | <Button |
229 | label={announcement.main.cta.label} | 228 | label={announcement.main.cta.label} |
230 | onClick={() => { | 229 | onClick={() => { |
231 | const { analytics } = announcement.main.cta; | ||
232 | window.location.href = `#${announcement.main.cta.href}`; | 230 | window.location.href = `#${announcement.main.cta.href}`; |
233 | gaEvent(analytics.category, analytics.action, announcement.main.cta.label); | ||
234 | }} | 231 | }} |
235 | /> | 232 | /> |
236 | </div> | 233 | </div> |
@@ -253,9 +250,7 @@ class AnnouncementScreen extends Component { | |||
253 | <Button | 250 | <Button |
254 | label={announcement.spotlight.cta.label} | 251 | label={announcement.spotlight.cta.label} |
255 | onClick={() => { | 252 | onClick={() => { |
256 | const { analytics } = announcement.spotlight.cta; | ||
257 | window.location.href = `#${announcement.spotlight.cta.href}`; | 253 | window.location.href = `#${announcement.spotlight.cta.href}`; |
258 | gaEvent(analytics.category, analytics.action, announcement.spotlight.cta.label); | ||
259 | }} | 254 | }} |
260 | /> | 255 | /> |
261 | </div> | 256 | </div> |