diff options
Diffstat (limited to 'src/features/shareFranz/index.js')
-rw-r--r-- | src/features/shareFranz/index.js | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/features/shareFranz/index.js b/src/features/shareFranz/index.js index 87deacef4..217e926f9 100644 --- a/src/features/shareFranz/index.js +++ b/src/features/shareFranz/index.js | |||
@@ -2,11 +2,10 @@ import { observable, reaction } from 'mobx'; | |||
2 | import ms from 'ms'; | 2 | import ms from 'ms'; |
3 | 3 | ||
4 | import { state as delayAppState } from '../delayApp'; | 4 | import { state as delayAppState } from '../delayApp'; |
5 | import { gaEvent, gaPage } from '../../lib/analytics'; | ||
6 | 5 | ||
7 | export { default as Component } from './Component'; | 6 | export { default as Component } from './Component'; |
8 | 7 | ||
9 | const debug = require('debug')('Franz:feature:shareFranz'); | 8 | const debug = require('debug')('Ferdi:feature:shareFranz'); |
10 | 9 | ||
11 | const defaultState = { | 10 | const defaultState = { |
12 | isModalVisible: false, | 11 | isModalVisible: false, |
@@ -16,19 +15,16 @@ const defaultState = { | |||
16 | export const state = observable(defaultState); | 15 | export const state = observable(defaultState); |
17 | 16 | ||
18 | export default function initialize(stores) { | 17 | export default function initialize(stores) { |
19 | debug('Initialize shareFranz feature'); | 18 | debug('Initialize shareFerdi feature'); |
20 | 19 | ||
21 | window.franz.features.shareFranz = { | 20 | window.ferdi.features.shareFerdi = { |
22 | state, | 21 | state, |
23 | }; | 22 | }; |
24 | 23 | ||
25 | function showModal() { | 24 | function showModal() { |
26 | debug('Showing share window'); | 25 | debug('Would have showed share window'); |
27 | 26 | ||
28 | state.isModalVisible = true; | 27 | // state.isModalVisible = true; |
29 | |||
30 | gaEvent('Share Franz', 'show'); | ||
31 | gaPage('/share-modal'); | ||
32 | } | 28 | } |
33 | 29 | ||
34 | reaction( | 30 | reaction( |