From b6b9a7dee8a6e1e5dd82047044a3ac8694236e65 Mon Sep 17 00:00:00 2001 From: Lisa Knox Date: Fri, 9 Feb 2024 11:06:15 -0500 Subject: [PATCH] 21224: unit tests pass Arvados-DCO-1.1-Signed-off-by: Lisa Knox --- .../workbench2/src/store/details-panel/details-panel-action.ts | 2 +- .../src/views-components/details-panel/details-panel.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/services/workbench2/src/store/details-panel/details-panel-action.ts b/services/workbench2/src/store/details-panel/details-panel-action.ts index 28347e828e..ca2db7217f 100644 --- a/services/workbench2/src/store/details-panel/details-panel-action.ts +++ b/services/workbench2/src/store/details-panel/details-panel-action.ts @@ -13,9 +13,9 @@ import { FilterBuilder } from 'services/api/filter-builder'; import { OrderBuilder } from 'services/api/order-builder'; import { CollectionResource } from 'models/collection'; import { extractUuidKind, ResourceKind } from 'models/resource'; -import { CLOSE_DRAWER } from 'views-components/details-panel/details-panel'; export const SLIDE_TIMEOUT = 500; +export const CLOSE_DRAWER = 'CLOSE_DRAWER' export const detailsPanelActions = unionize({ TOGGLE_DETAILS_PANEL: ofType<{}>(), diff --git a/services/workbench2/src/views-components/details-panel/details-panel.tsx b/services/workbench2/src/views-components/details-panel/details-panel.tsx index c48f784638..e86d1bd477 100644 --- a/services/workbench2/src/views-components/details-panel/details-panel.tsx +++ b/services/workbench2/src/views-components/details-panel/details-panel.tsx @@ -30,6 +30,7 @@ import { getNode } from 'models/tree'; import { resourceIsFrozen } from 'common/frozen-resources'; import { DetailsPanelState } from 'store/details-panel/details-panel-reducer'; import { MultiselectToolbarState } from 'store/multiselect/multiselect-reducer'; +import { CLOSE_DRAWER } from 'store/details-panel/details-panel-action'; type CssRules = 'root' | 'container' | 'opened' | 'headerContainer' | 'headerIcon' | 'tabContainer'; @@ -126,7 +127,7 @@ const mapStateToProps = ({ auth, detailsPanel, resources, collectionPanelFiles, }; }; -export const CLOSE_DRAWER = 'CLOSE_DRAWER' +// export const CLOSE_DRAWER = 'CLOSE_DRAWER' const mapDispatchToProps = (dispatch: Dispatch) => ({ onCloseDrawer: (currentItemId) => { -- 2.30.2