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/publishDebugInfo | |
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/publishDebugInfo')
-rw-r--r-- | src/features/publishDebugInfo/Component.js | 2 | ||||
-rw-r--r-- | src/features/publishDebugInfo/index.js | 9 | ||||
-rw-r--r-- | src/features/publishDebugInfo/store.js | 7 |
3 files changed, 10 insertions, 8 deletions
diff --git a/src/features/publishDebugInfo/Component.js b/src/features/publishDebugInfo/Component.js index 1f1b0ed45..63f15fe7b 100644 --- a/src/features/publishDebugInfo/Component.js +++ b/src/features/publishDebugInfo/Component.js | |||
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types'; | |||
4 | import React, { Component } from 'react'; | 4 | import React, { Component } from 'react'; |
5 | import { defineMessages, intlShape } from 'react-intl'; | 5 | import { defineMessages, intlShape } from 'react-intl'; |
6 | import injectSheet from 'react-jss'; | 6 | import injectSheet from 'react-jss'; |
7 | import { state as ModalState } from '.'; | 7 | import { state as ModalState } from './store'; |
8 | import { sendAuthRequest } from '../../api/utils/auth'; | 8 | import { sendAuthRequest } from '../../api/utils/auth'; |
9 | import Button from '../../components/ui/Button'; | 9 | import Button from '../../components/ui/Button'; |
10 | import Input from '../../components/ui/Input'; | 10 | import Input from '../../components/ui/Input'; |
diff --git a/src/features/publishDebugInfo/index.js b/src/features/publishDebugInfo/index.js index 7d0d310c2..51780a34e 100644 --- a/src/features/publishDebugInfo/index.js +++ b/src/features/publishDebugInfo/index.js | |||
@@ -1,15 +1,10 @@ | |||
1 | import { observable } from 'mobx'; | 1 | import { state as ModalState } from './store'; |
2 | 2 | ||
3 | export { default as Component } from './Component'; | 3 | export { default as Component } from './Component'; |
4 | 4 | ||
5 | const state = ModalState; | ||
5 | const debug = require('debug')('Ferdi:feature:publishDebugInfo'); | 6 | const debug = require('debug')('Ferdi:feature:publishDebugInfo'); |
6 | 7 | ||
7 | const defaultState = { | ||
8 | isModalVisible: false, | ||
9 | }; | ||
10 | |||
11 | export const state = observable(defaultState); | ||
12 | |||
13 | export default function initialize() { | 8 | export default function initialize() { |
14 | debug('Initialize publishDebugInfo feature'); | 9 | debug('Initialize publishDebugInfo feature'); |
15 | 10 | ||
diff --git a/src/features/publishDebugInfo/store.js b/src/features/publishDebugInfo/store.js new file mode 100644 index 000000000..ed06e5a7d --- /dev/null +++ b/src/features/publishDebugInfo/store.js | |||
@@ -0,0 +1,7 @@ | |||
1 | import { observable } from 'mobx'; | ||
2 | |||
3 | const defaultState = { | ||
4 | isModalVisible: false, | ||
5 | }; | ||
6 | |||
7 | export const state = observable(defaultState); | ||