diff options
author | 2021-06-22 10:56:34 +0530 | |
---|---|---|
committer | 2021-06-22 10:56:34 +0530 | |
commit | a94ed659846f0bc93c05bccf0c96785b91e5c78f (patch) | |
tree | 0a50eeb85e9043708936da9a0c923b32edbe8ab9 /src/features/shareFranz | |
parent | Downgraded submodule 'src/internal-server' (diff) | |
download | ferdium-app-a94ed659846f0bc93c05bccf0c96785b91e5c78f.tar.gz ferdium-app-a94ed659846f0bc93c05bccf0c96785b91e5c78f.tar.zst ferdium-app-a94ed659846f0bc93c05bccf0c96785b91e5c78f.zip |
Diffstat (limited to 'src/features/shareFranz')
-rw-r--r-- | src/features/shareFranz/Component.js | 2 | ||||
-rw-r--r-- | src/features/shareFranz/index.js | 11 | ||||
-rw-r--r-- | src/features/shareFranz/store.js | 8 |
3 files changed, 12 insertions, 9 deletions
diff --git a/src/features/shareFranz/Component.js b/src/features/shareFranz/Component.js index 405fb0ab5..f7f8dc41c 100644 --- a/src/features/shareFranz/Component.js +++ b/src/features/shareFranz/Component.js | |||
@@ -10,7 +10,7 @@ import { | |||
10 | mdiHeart, mdiEmail, mdiFacebookBox, mdiTwitter, | 10 | mdiHeart, mdiEmail, mdiFacebookBox, mdiTwitter, |
11 | } from '@mdi/js'; | 11 | } from '@mdi/js'; |
12 | import Modal from '../../components/ui/Modal'; | 12 | import Modal from '../../components/ui/Modal'; |
13 | import { state } from '.'; | 13 | import { state } from './store'; |
14 | import ServicesStore from '../../stores/ServicesStore'; | 14 | import ServicesStore from '../../stores/ServicesStore'; |
15 | 15 | ||
16 | const messages = defineMessages({ | 16 | const messages = defineMessages({ |
diff --git a/src/features/shareFranz/index.js b/src/features/shareFranz/index.js index 04e3684ae..34475f674 100644 --- a/src/features/shareFranz/index.js +++ b/src/features/shareFranz/index.js | |||
@@ -1,6 +1,6 @@ | |||
1 | import { observable, reaction } from 'mobx'; | 1 | import { reaction } from 'mobx'; |
2 | import ms from 'ms'; | 2 | import ms from 'ms'; |
3 | 3 | import { state as ModalState } from './store'; | |
4 | import { state as delayAppState } from '../delayApp'; | 4 | import { state as delayAppState } from '../delayApp'; |
5 | import { planSelectionStore } from '../planSelection'; | 5 | import { planSelectionStore } from '../planSelection'; |
6 | 6 | ||
@@ -8,12 +8,7 @@ export { default as Component } from './Component'; | |||
8 | 8 | ||
9 | const debug = require('debug')('Ferdi:feature:shareFranz'); | 9 | const debug = require('debug')('Ferdi:feature:shareFranz'); |
10 | 10 | ||
11 | const defaultState = { | 11 | const state = ModalState; |
12 | isModalVisible: false, | ||
13 | lastShown: null, | ||
14 | }; | ||
15 | |||
16 | export const state = observable(defaultState); | ||
17 | 12 | ||
18 | export default function initialize(stores) { | 13 | export default function initialize(stores) { |
19 | debug('Initialize shareFerdi feature'); | 14 | debug('Initialize shareFerdi feature'); |
diff --git a/src/features/shareFranz/store.js b/src/features/shareFranz/store.js new file mode 100644 index 000000000..c637e9eff --- /dev/null +++ b/src/features/shareFranz/store.js | |||
@@ -0,0 +1,8 @@ | |||
1 | import { observable } from 'mobx'; | ||
2 | |||
3 | const defaultState = { | ||
4 | isModalVisible: false, | ||
5 | lastShown: null, | ||
6 | }; | ||
7 | |||
8 | export const state = observable(defaultState); | ||