From c27972c12b2d0dba2aee9e3dcffadcf7806a9afd Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Thu, 14 Oct 2021 18:20:26 +0200 Subject: chore: remove all code related to news (#2069) --- src/containers/layout/AppLayoutContainer.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'src/containers/layout/AppLayoutContainer.js') 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'; import ServicesStore from '../../stores/ServicesStore'; import FeaturesStore from '../../stores/FeaturesStore'; import UIStore from '../../stores/UIStore'; -import NewsStore from '../../stores/NewsStore'; import SettingsStore from '../../stores/SettingsStore'; import UserStore from '../../stores/UserStore'; import RequestStore from '../../stores/RequestStore'; @@ -38,7 +37,6 @@ class AppLayoutContainer extends Component { features, services, ui, - news, settings, globalError, requests, @@ -63,8 +61,6 @@ class AppLayoutContainer extends Component { awake, } = this.props.actions.service; - const { hide } = this.props.actions.news; - const { retryRequiredRequests } = this.props.actions.requests; const { installUpdate, toggleMuteApp } = this.props.actions.app; @@ -95,10 +91,11 @@ class AppLayoutContainer extends Component { const workspacesDrawer = ( - (workspace + workspace ? workspaceStore.getWorkspaceServices(workspace).map(s => s.name) - : services.all.map(s => s.name)) + : services.all.map(s => s.name) } /> ); @@ -158,8 +155,6 @@ class AppLayoutContainer extends Component { sidebar={sidebar} workspacesDrawer={workspacesDrawer} services={servicesContainer} - news={news.latest} - removeNewsItem={hide} reloadServicesAfterUpdate={() => window.location.reload()} installAppUpdate={installUpdate} globalError={globalError.error} @@ -182,7 +177,6 @@ AppLayoutContainer.wrappedComponent.propTypes = { recipes: PropTypes.instanceOf(RecipesStore).isRequired, app: PropTypes.instanceOf(AppStore).isRequired, ui: PropTypes.instanceOf(UIStore).isRequired, - news: PropTypes.instanceOf(NewsStore).isRequired, settings: PropTypes.instanceOf(SettingsStore).isRequired, user: PropTypes.instanceOf(UserStore).isRequired, requests: PropTypes.instanceOf(RequestStore).isRequired, @@ -191,7 +185,6 @@ AppLayoutContainer.wrappedComponent.propTypes = { }).isRequired, actions: PropTypes.shape({ service: PropTypes.instanceOf(ServicesStore).isRequired, - news: PropTypes.instanceOf(NewsStore).isRequired, ui: PropTypes.instanceOf(UIStore).isRequired, app: PropTypes.instanceOf(AppStore).isRequired, requests: PropTypes.instanceOf(RequestStore).isRequired, -- cgit v1.2.3-70-g09d2