From 2908d5cb83410d756ecb9765b03f9a30e7c8f479 Mon Sep 17 00:00:00 2001 From: Arian Sobczak Date: Wed, 19 Apr 2023 17:10:10 +0200 Subject: [PATCH] chore: removed filter button from resource action --- .../components/app/action-header/action-header.tsx | 2 +- src/frontend/components/routes/resource-action.tsx | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/frontend/components/app/action-header/action-header.tsx b/src/frontend/components/app/action-header/action-header.tsx index d7ad93845..d0070e562 100644 --- a/src/frontend/components/app/action-header/action-header.tsx +++ b/src/frontend/components/app/action-header/action-header.tsx @@ -113,7 +113,7 @@ const ActionHeader: React.FC = (props) => { - {action.showInDrawer ? : ''} + {action.showInDrawer && } {title} {tag ? ( diff --git a/src/frontend/components/routes/resource-action.tsx b/src/frontend/components/routes/resource-action.tsx index 2859f122b..0e3f51056 100644 --- a/src/frontend/components/routes/resource-action.tsx +++ b/src/frontend/components/routes/resource-action.tsx @@ -25,7 +25,6 @@ const ResourceAction: React.FC = (props) => { const params = useParams() const { resources } = props const { resourceId, actionName } = params - const { toggleFilter } = useFilterDrawer() const [tag, setTag] = useState('') const resource = resources.find((r) => r.id === resourceId) @@ -48,7 +47,12 @@ const ResourceAction: React.FC = (props) => { return ( - + {action.showFilter ? : ''}