diff options
author | 2021-10-14 18:20:26 +0200 | |
---|---|---|
committer | 2021-10-14 18:20:26 +0200 | |
commit | c27972c12b2d0dba2aee9e3dcffadcf7806a9afd (patch) | |
tree | 46fcfe261ae55e6faab604e9c75f94f6ffe326ee /src/containers | |
parent | chore: upgrade 'electron-builder' to '22.14.5' to fix upstream issues. (#2068) (diff) | |
download | ferdium-app-c27972c12b2d0dba2aee9e3dcffadcf7806a9afd.tar.gz ferdium-app-c27972c12b2d0dba2aee9e3dcffadcf7806a9afd.tar.zst ferdium-app-c27972c12b2d0dba2aee9e3dcffadcf7806a9afd.zip |
chore: remove all code related to news (#2069)
Diffstat (limited to 'src/containers')
-rw-r--r-- | src/containers/layout/AppLayoutContainer.js | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/containers/layout/AppLayoutContainer.js b/src/containers/layout/AppLayoutContainer.js index ae4cc8b63..0d566525d 100644 --- a/src/containers/layout/AppLayoutContainer.js +++ b/src/containers/layout/AppLayoutContainer.js | |||
@@ -8,7 +8,6 @@ import RecipesStore from '../../stores/RecipesStore'; | |||
8 | import ServicesStore from '../../stores/ServicesStore'; | 8 | import ServicesStore from '../../stores/ServicesStore'; |
9 | import FeaturesStore from '../../stores/FeaturesStore'; | 9 | import FeaturesStore from '../../stores/FeaturesStore'; |
10 | import UIStore from '../../stores/UIStore'; | 10 | import UIStore from '../../stores/UIStore'; |
11 | import NewsStore from '../../stores/NewsStore'; | ||
12 | import SettingsStore from '../../stores/SettingsStore'; | 11 | import SettingsStore from '../../stores/SettingsStore'; |
13 | import UserStore from '../../stores/UserStore'; | 12 | import UserStore from '../../stores/UserStore'; |
14 | import RequestStore from '../../stores/RequestStore'; | 13 | import RequestStore from '../../stores/RequestStore'; |
@@ -38,7 +37,6 @@ class AppLayoutContainer extends Component { | |||
38 | features, | 37 | features, |
39 | services, | 38 | services, |
40 | ui, | 39 | ui, |
41 | news, | ||
42 | settings, | 40 | settings, |
43 | globalError, | 41 | globalError, |
44 | requests, | 42 | requests, |
@@ -63,8 +61,6 @@ class AppLayoutContainer extends Component { | |||
63 | awake, | 61 | awake, |
64 | } = this.props.actions.service; | 62 | } = this.props.actions.service; |
65 | 63 | ||
66 | const { hide } = this.props.actions.news; | ||
67 | |||
68 | const { retryRequiredRequests } = this.props.actions.requests; | 64 | const { retryRequiredRequests } = this.props.actions.requests; |
69 | 65 | ||
70 | const { installUpdate, toggleMuteApp } = this.props.actions.app; | 66 | const { installUpdate, toggleMuteApp } = this.props.actions.app; |
@@ -95,10 +91,11 @@ class AppLayoutContainer extends Component { | |||
95 | 91 | ||
96 | const workspacesDrawer = ( | 92 | const workspacesDrawer = ( |
97 | <WorkspaceDrawer | 93 | <WorkspaceDrawer |
94 | // eslint-disable-next-line no-confusing-arrow | ||
98 | getServicesForWorkspace={workspace => | 95 | getServicesForWorkspace={workspace => |
99 | (workspace | 96 | workspace |
100 | ? workspaceStore.getWorkspaceServices(workspace).map(s => s.name) | 97 | ? workspaceStore.getWorkspaceServices(workspace).map(s => s.name) |
101 | : services.all.map(s => s.name)) | 98 | : services.all.map(s => s.name) |
102 | } | 99 | } |
103 | /> | 100 | /> |
104 | ); | 101 | ); |
@@ -158,8 +155,6 @@ class AppLayoutContainer extends Component { | |||
158 | sidebar={sidebar} | 155 | sidebar={sidebar} |
159 | workspacesDrawer={workspacesDrawer} | 156 | workspacesDrawer={workspacesDrawer} |
160 | services={servicesContainer} | 157 | services={servicesContainer} |
161 | news={news.latest} | ||
162 | removeNewsItem={hide} | ||
163 | reloadServicesAfterUpdate={() => window.location.reload()} | 158 | reloadServicesAfterUpdate={() => window.location.reload()} |
164 | installAppUpdate={installUpdate} | 159 | installAppUpdate={installUpdate} |
165 | globalError={globalError.error} | 160 | globalError={globalError.error} |
@@ -182,7 +177,6 @@ AppLayoutContainer.wrappedComponent.propTypes = { | |||
182 | recipes: PropTypes.instanceOf(RecipesStore).isRequired, | 177 | recipes: PropTypes.instanceOf(RecipesStore).isRequired, |
183 | app: PropTypes.instanceOf(AppStore).isRequired, | 178 | app: PropTypes.instanceOf(AppStore).isRequired, |
184 | ui: PropTypes.instanceOf(UIStore).isRequired, | 179 | ui: PropTypes.instanceOf(UIStore).isRequired, |
185 | news: PropTypes.instanceOf(NewsStore).isRequired, | ||
186 | settings: PropTypes.instanceOf(SettingsStore).isRequired, | 180 | settings: PropTypes.instanceOf(SettingsStore).isRequired, |
187 | user: PropTypes.instanceOf(UserStore).isRequired, | 181 | user: PropTypes.instanceOf(UserStore).isRequired, |
188 | requests: PropTypes.instanceOf(RequestStore).isRequired, | 182 | requests: PropTypes.instanceOf(RequestStore).isRequired, |
@@ -191,7 +185,6 @@ AppLayoutContainer.wrappedComponent.propTypes = { | |||
191 | }).isRequired, | 185 | }).isRequired, |
192 | actions: PropTypes.shape({ | 186 | actions: PropTypes.shape({ |
193 | service: PropTypes.instanceOf(ServicesStore).isRequired, | 187 | service: PropTypes.instanceOf(ServicesStore).isRequired, |
194 | news: PropTypes.instanceOf(NewsStore).isRequired, | ||
195 | ui: PropTypes.instanceOf(UIStore).isRequired, | 188 | ui: PropTypes.instanceOf(UIStore).isRequired, |
196 | app: PropTypes.instanceOf(AppStore).isRequired, | 189 | app: PropTypes.instanceOf(AppStore).isRequired, |
197 | requests: PropTypes.instanceOf(RequestStore).isRequired, | 190 | requests: PropTypes.instanceOf(RequestStore).isRequired, |