diff options
Diffstat (limited to 'src/features/shareFranz/index.js')
-rw-r--r-- | src/features/shareFranz/index.js | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/features/shareFranz/index.js b/src/features/shareFranz/index.js index 34475f674..9add0f65e 100644 --- a/src/features/shareFranz/index.js +++ b/src/features/shareFranz/index.js | |||
@@ -1,8 +1,6 @@ | |||
1 | import { reaction } from 'mobx'; | 1 | import { reaction } from 'mobx'; |
2 | import ms from 'ms'; | 2 | import ms from 'ms'; |
3 | import { state as ModalState } from './store'; | 3 | import { state as ModalState } from './store'; |
4 | import { state as delayAppState } from '../delayApp'; | ||
5 | import { planSelectionStore } from '../planSelection'; | ||
6 | 4 | ||
7 | export { default as Component } from './Component'; | 5 | export { default as Component } from './Component'; |
8 | 6 | ||
@@ -19,21 +17,14 @@ export default function initialize(stores) { | |||
19 | 17 | ||
20 | function showModal() { | 18 | function showModal() { |
21 | debug('Would have showed share window'); | 19 | debug('Would have showed share window'); |
22 | |||
23 | // state.isModalVisible = true; | ||
24 | } | 20 | } |
25 | 21 | ||
26 | reaction( | 22 | reaction( |
27 | () => stores.user.isLoggedIn, | 23 | () => stores.user.isLoggedIn, |
28 | () => { | 24 | () => { |
29 | setTimeout(() => { | 25 | setTimeout(() => { |
30 | if (stores.settings.stats.appStarts % 50 === 0 && !planSelectionStore.showPlanSelectionOverlay) { | 26 | if (stores.settings.stats.appStarts % 50 === 0) { |
31 | if (delayAppState.isDelayAppScreenVisible) { | 27 | showModal(); |
32 | debug('Delaying share modal by 5 minutes'); | ||
33 | setTimeout(() => showModal(), ms('5m')); | ||
34 | } else { | ||
35 | showModal(); | ||
36 | } | ||
37 | } | 28 | } |
38 | }, ms('2s')); | 29 | }, ms('2s')); |
39 | }, | 30 | }, |