From c63e301c3c310ef65cdb971fcbe8c465173f4dab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Fri, 10 Dec 2021 10:59:09 +0100 Subject: [PATCH] fix: cleanup application view (#553) --- .../application-edit-component-test.js.snap | 56 +++++++------------ .../application/application-view.jsx | 24 +++----- 2 files changed, 27 insertions(+), 53 deletions(-) diff --git a/frontend/src/component/application/__tests__/__snapshots__/application-edit-component-test.js.snap b/frontend/src/component/application/__tests__/__snapshots__/application-edit-component-test.js.snap index bf0c1bff96..ac44894f3a 100644 --- a/frontend/src/component/application/__tests__/__snapshots__/application-edit-component-test.js.snap +++ b/frontend/src/component/application/__tests__/__snapshots__/application-edit-component-test.js.snap @@ -278,44 +278,16 @@ exports[`renders correctly with permissions 1`] = `
- - - - - - - - - +
ToggleB @@ -443,6 +420,11 @@ exports[`renders correctly with permissions 1`] = ` aria-hidden={true} className="MuiSvgIcon-root" focusable="false" + style={ + Object { + "color": "red", + } + } viewBox="0 0 24 24" > - + {name}} @@ -59,19 +58,13 @@ function ApplicationView({ const foundListItem = ({ viewUrl, name, - showSwitch, - enabled, description, + Icon, i, }) => ( - } - elseShow={} - /> + {seenToggles.map( ( - { name, description, enabled, notFound, project }, + { name, description, notFound, project }, i ) => ( @@ -135,7 +127,7 @@ function ApplicationView({ elseShow={foundListItem({ viewUrl: '/strategies/view', name, - showSwitch: false, + Icon: Extension, enabled: undefined, description, i,