From 22e0b4fce4ccedd49e4745fd6324d85c8a8f056d Mon Sep 17 00:00:00 2001 From: Philipp Hugenroth Date: Wed, 14 Jul 2021 12:09:58 +0200 Subject: [PATCH] Move Filter in a Button with Icon Fix SupportButton flex layout Signed-off-by: Philipp Hugenroth --- .../SupportButton/SupportButton.tsx | 5 +- .../layout/ContentHeader/ContentHeader.tsx | 2 +- .../components/CatalogPage/CatalogPage.tsx | 10 ++-- .../CatalogPage/CatalogPageHeader.tsx | 50 ------------------- .../FilteredTableLayout/FilterContainer.tsx | 3 ++ .../FilteredTableLayout.tsx | 39 +++++++++++++-- 6 files changed, 45 insertions(+), 64 deletions(-) delete mode 100644 plugins/catalog/src/components/CatalogPage/CatalogPageHeader.tsx diff --git a/packages/core-components/src/components/SupportButton/SupportButton.tsx b/packages/core-components/src/components/SupportButton/SupportButton.tsx index 2ffef89878..53c9b20273 100644 --- a/packages/core-components/src/components/SupportButton/SupportButton.tsx +++ b/packages/core-components/src/components/SupportButton/SupportButton.tsx @@ -100,9 +100,8 @@ export const SupportButton = ({ title, children }: SupportButtonProps) => { color="primary" onClick={onClickHandler} > - - - + + Support ( diff --git a/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx b/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx index 3df46ff0c0..5da46eec97 100644 --- a/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx +++ b/plugins/catalog/src/components/CatalogPage/CatalogPage.tsx @@ -16,6 +16,7 @@ import { Content, + ContentHeader, PageWithHeader, SupportButton, TableColumn, @@ -41,7 +42,6 @@ import { TableContainer, FilterContainer, } from '../FilteredTableLayout'; -import { CatalogPageHeader } from './CatalogPageHeader'; export type CatalogPageProps = { initiallySelectedFilter?: UserListFilterKind; @@ -60,11 +60,11 @@ export const CatalogPage = ({ return ( + + + All your software catalog entities + - - - All your software catalog entities -