diff --git a/src/components/AsideHeader/components/FirstPanel.tsx b/src/components/AsideHeader/components/FirstPanel.tsx index f50c7a7c..759d0dc8 100644 --- a/src/components/AsideHeader/components/FirstPanel.tsx +++ b/src/components/AsideHeader/components/FirstPanel.tsx @@ -25,7 +25,6 @@ export const FirstPanel = React.forwardRef((_props, ref) => { customBackgroundClassName, className, hideCollapseButton, - logo, qa, } = useAsideHeaderInnerContext(); const visibleMenuItems = useVisibleMenuItems(); @@ -47,8 +46,7 @@ export const FirstPanel = React.forwardRef((_props, ref) => { {customBackground} )} - {/* TODO add new prop for hiding Header */} - {logo &&
} +
{visibleMenuItems?.length ? ( { [onClosePanel, logo], ); - if (!logo) { - return null; - } - return (
- + {logo && ( + + )}