From a16520ddda9daf84030c3d9b7b2399b0674273e0 Mon Sep 17 00:00:00 2001 From: olav Date: Wed, 23 Mar 2022 09:12:10 +0100 Subject: [PATCH] refactor: fix Tooltip ref warning (#804) * refactor: fix Tooltip ref warning * refactor: add missing button labels --- .../StrategiesList/StrategiesList.tsx | 18 ++++++++++-------- .../__snapshots__/list-component-test.jsx.snap | 10 ++++++++-- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/frontend/src/component/strategies/StrategiesList/StrategiesList.tsx b/frontend/src/component/strategies/StrategiesList/StrategiesList.tsx index 9d7bbe51b8..21e8920f8c 100644 --- a/frontend/src/component/strategies/StrategiesList/StrategiesList.tsx +++ b/frontend/src/component/strategies/StrategiesList/StrategiesList.tsx @@ -163,12 +163,14 @@ export const StrategiesList = () => { const reactivateButton = (strategy: ICustomStrategy) => ( - onReactivateStrategy(strategy)} - permission={UPDATE_STRATEGY} - > - - +
+ onReactivateStrategy(strategy)} + permission={UPDATE_STRATEGY} + > + + +
); @@ -179,7 +181,7 @@ export const StrategiesList = () => {
- +
@@ -190,7 +192,7 @@ export const StrategiesList = () => { onClick={() => onDeprecateStrategy(strategy)} permission={UPDATE_STRATEGY} > - + } diff --git a/frontend/src/component/strategies/__tests__/__snapshots__/list-component-test.jsx.snap b/frontend/src/component/strategies/__tests__/__snapshots__/list-component-test.jsx.snap index d1f70d522a..3936770715 100644 --- a/frontend/src/component/strategies/__tests__/__snapshots__/list-component-test.jsx.snap +++ b/frontend/src/component/strategies/__tests__/__snapshots__/list-component-test.jsx.snap @@ -159,14 +159,17 @@ exports[`renders correctly with one strategy 1`] = ` className="MuiIconButton-label" > + + Deprecate strategy + + + Deprecate strategy +