From 93b59b5b98afcf48951e195b8b80a74bc2dbb8dc Mon Sep 17 00:00:00 2001 From: Tatiana Lopaeva Date: Thu, 22 Aug 2024 18:22:09 +0300 Subject: [PATCH] Shared: selectors/Files: Fixed styles because of an aside header component. --- packages/shared/selectors/Files/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/shared/selectors/Files/index.tsx b/packages/shared/selectors/Files/index.tsx index ddcd246312..1efe4e7e42 100644 --- a/packages/shared/selectors/Files/index.tsx +++ b/packages/shared/selectors/Files/index.tsx @@ -476,7 +476,10 @@ const FilesSelectorComponent = ({ ]); const headerProps: TSelectorHeader = withHeader - ? { withHeader, headerProps: { headerLabel } } + ? { + withHeader, + headerProps: { headerLabel, onCloseClick: onCancel }, + } : {}; const withSearch = withSearchProp @@ -617,6 +620,7 @@ const FilesSelectorComponent = ({ withoutBodyScroll zIndex={310} onClose={onCancel} + withoutHeader > {SelectorBody}