aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/shareFranz/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/features/shareFranz/index.js')
-rw-r--r--src/features/shareFranz/index.js14
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';
2import ms from 'ms'; 2import ms from 'ms';
3 3
4import { state as delayAppState } from '../delayApp'; 4import { state as delayAppState } from '../delayApp';
5import { gaEvent, gaPage } from '../../lib/analytics';
6import { planSelectionStore } from '../planSelection'; 5import { planSelectionStore } from '../planSelection';
7 6
8export { default as Component } from './Component'; 7export { default as Component } from './Component';
9 8
10const debug = require('debug')('Franz:feature:shareFranz'); 9const debug = require('debug')('Ferdi:feature:shareFranz');
11 10
12const defaultState = { 11const defaultState = {
13 isModalVisible: false, 12 isModalVisible: false,
@@ -17,19 +16,16 @@ const defaultState = {
17export const state = observable(defaultState); 16export const state = observable(defaultState);
18 17
19export default function initialize(stores) { 18export 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(