diff options
Diffstat (limited to 'src/features/delayApp')
-rw-r--r-- | src/features/delayApp/Component.js | 2 | ||||
-rw-r--r-- | src/features/delayApp/constants.js | 6 | ||||
-rw-r--r-- | src/features/delayApp/index.js | 7 |
3 files changed, 8 insertions, 7 deletions
diff --git a/src/features/delayApp/Component.js b/src/features/delayApp/Component.js index 81f89bc52..4ea37f88d 100644 --- a/src/features/delayApp/Component.js +++ b/src/features/delayApp/Component.js | |||
@@ -6,7 +6,7 @@ import injectSheet from 'react-jss'; | |||
6 | 6 | ||
7 | import { Button } from '@meetfranz/forms'; | 7 | import { Button } from '@meetfranz/forms'; |
8 | 8 | ||
9 | import { config } from '.'; | 9 | import { config } from './constants'; |
10 | import styles from './styles'; | 10 | import styles from './styles'; |
11 | import UserStore from '../../stores/UserStore'; | 11 | import UserStore from '../../stores/UserStore'; |
12 | 12 | ||
diff --git a/src/features/delayApp/constants.js b/src/features/delayApp/constants.js new file mode 100644 index 000000000..72cc4246e --- /dev/null +++ b/src/features/delayApp/constants.js | |||
@@ -0,0 +1,6 @@ | |||
1 | import { DEFAULT_FEATURES_CONFIG } from '../../config'; | ||
2 | |||
3 | export const config = { | ||
4 | delayOffset: DEFAULT_FEATURES_CONFIG.needToWaitToProceedConfig.delayOffset, | ||
5 | delayDuration: DEFAULT_FEATURES_CONFIG.needToWaitToProceedConfig.wait, | ||
6 | }; | ||
diff --git a/src/features/delayApp/index.js b/src/features/delayApp/index.js index 51bd887a2..5ef01a47e 100644 --- a/src/features/delayApp/index.js +++ b/src/features/delayApp/index.js | |||
@@ -1,17 +1,12 @@ | |||
1 | import { autorun, observable, reaction } from 'mobx'; | 1 | import { autorun, observable, reaction } from 'mobx'; |
2 | import moment from 'moment'; | 2 | import moment from 'moment'; |
3 | import DelayAppComponent from './Component'; | 3 | import DelayAppComponent from './Component'; |
4 | 4 | import { config } from './constants'; | |
5 | import { DEFAULT_FEATURES_CONFIG } from '../../config'; | 5 | import { DEFAULT_FEATURES_CONFIG } from '../../config'; |
6 | import { getUserWorkspacesRequest } from '../workspaces/api'; | 6 | import { getUserWorkspacesRequest } from '../workspaces/api'; |
7 | 7 | ||
8 | const debug = require('debug')('Ferdi:feature:delayApp'); | 8 | const debug = require('debug')('Ferdi:feature:delayApp'); |
9 | 9 | ||
10 | export const config = { | ||
11 | delayOffset: DEFAULT_FEATURES_CONFIG.needToWaitToProceedConfig.delayOffset, | ||
12 | delayDuration: DEFAULT_FEATURES_CONFIG.needToWaitToProceedConfig.wait, | ||
13 | }; | ||
14 | |||
15 | export const state = observable({ | 10 | export const state = observable({ |
16 | isDelayAppScreenVisible: DEFAULT_FEATURES_CONFIG.needToWaitToProceed, | 11 | isDelayAppScreenVisible: DEFAULT_FEATURES_CONFIG.needToWaitToProceed, |
17 | }); | 12 | }); |