Shared: selectors/Files: Fixed styles because of an aside header component.

This commit is contained in:
Tatiana Lopaeva 2024-08-22 18:22:09 +03:00
parent 646fcb815b
commit 93b59b5b98

View File

@ -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}
</Aside>