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 a39d7a6e6..04e3684ae 100644 --- a/src/features/shareFranz/index.js +++ b/src/features/shareFranz/index.js | |||
@@ -2,12 +2,11 @@ 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 | import { planSelectionStore } from '../planSelection'; | 5 | import { planSelectionStore } from '../planSelection'; |
7 | 6 | ||
8 | export { default as Component } from './Component'; | 7 | export { default as Component } from './Component'; |
9 | 8 | ||
10 | const debug = require('debug')('Franz:feature:shareFranz'); | 9 | const debug = require('debug')('Ferdi:feature:shareFranz'); |
11 | 10 | ||
12 | const defaultState = { | 11 | const defaultState = { |
13 | isModalVisible: false, | 12 | isModalVisible: false, |
@@ -17,19 +16,16 @@ const defaultState = { | |||
17 | export const state = observable(defaultState); | 16 | export const state = observable(defaultState); |
18 | 17 | ||
19 | export default function initialize(stores) { | 18 | export default function initialize(stores) { |
20 | debug('Initialize shareFranz feature'); | 19 | debug('Initialize shareFerdi feature'); |
21 | 20 | ||
22 | window.franz.features.shareFranz = { | 21 | window.ferdi.features.shareFerdi = { |
23 | state, | 22 | state, |
24 | }; | 23 | }; |
25 | 24 | ||
26 | function showModal() { | 25 | function showModal() { |
27 | debug('Showing share window'); | 26 | debug('Would have showed share window'); |
28 | 27 | ||
29 | state.isModalVisible = true; | 28 | // state.isModalVisible = true; |
30 | |||
31 | gaEvent('Share Franz', 'show'); | ||
32 | gaPage('/share-modal'); | ||
33 | } | 29 | } |
34 | 30 | ||
35 | reaction( | 31 | reaction( |