X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f6f88d9ca9cdeeeebfadcfe999789bfb9f69e5c6:/src/views/main-panel/main-panel.tsx..2f83fcd45b4b23db2bb5bb4afbe1e863ebd77ec6:/services/workbench2/src/views/main-panel/static/gitweb.js diff --git a/src/views/main-panel/main-panel.tsx b/src/views/main-panel/main-panel.tsx deleted file mode 100644 index fac3da6715..0000000000 --- a/src/views/main-panel/main-panel.tsx +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (C) The Arvados Authors. All rights reserved. -// -// SPDX-License-Identifier: AGPL-3.0 - -import { RootState } from 'store/store'; -import { connect } from 'react-redux'; -import parse from 'parse-duration'; -import { MainPanelRoot, MainPanelRootDataProps } from 'views/main-panel/main-panel-root'; -import { isSystemWorking } from 'store/progress-indicator/progress-indicator-reducer'; -import { isWorkbenchLoading } from 'store/workbench/workbench-actions'; -import { LinkAccountPanelStatus } from 'store/link-account-panel/link-account-panel-reducer'; -import { matchLinkAccountRoute } from 'routes/routes'; -import { toggleSidePanel } from "store/side-panel/side-panel-action"; - -const mapStateToProps = (state: RootState): MainPanelRootDataProps => { - return { - user: state.auth.user, - working: isSystemWorking(state.progressIndicator), - loading: isWorkbenchLoading(state), - buildInfo: state.appInfo.buildInfo, - uuidPrefix: state.auth.localCluster, - isNotLinking: state.linkAccountPanel.status === LinkAccountPanelStatus.NONE || state.linkAccountPanel.status === LinkAccountPanelStatus.INITIAL, - isLinkingPath: state.router.location ? matchLinkAccountRoute(state.router.location.pathname) !== null : false, - siteBanner: state.auth.config.clusterConfig.Workbench.SiteName, - sessionIdleTimeout: parse(state.auth.config.clusterConfig.Workbench.IdleTimeout, 's') || 0, - sidePanelIsCollapsed: state.sidePanel.collapsedState, - }; -}; - -const mapDispatchToProps = (dispatch) => { - return { - toggleSidePanel: (collapsedState)=>{ - return dispatch(toggleSidePanel(collapsedState)) - } - } -}; - -export const MainPanel = connect(mapStateToProps, mapDispatchToProps)(MainPanelRoot);