File tree 2 files changed +10
-14
lines changed
2 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ export const FirstPanel = React.forwardRef<HTMLDivElement>((_props, ref) => {
25
25
customBackgroundClassName,
26
26
className,
27
27
hideCollapseButton,
28
- logo,
29
28
qa,
30
29
} = useAsideHeaderInnerContext ( ) ;
31
30
const visibleMenuItems = useVisibleMenuItems ( ) ;
@@ -47,8 +46,7 @@ export const FirstPanel = React.forwardRef<HTMLDivElement>((_props, ref) => {
47
46
{ customBackground }
48
47
</ div >
49
48
) }
50
- { /* TODO add new prop for hiding Header */ }
51
- { logo && < Header /> }
49
+ < Header />
52
50
{ visibleMenuItems ?. length ? (
53
51
< CompositeBar
54
52
type = "menu"
Original file line number Diff line number Diff line change @@ -26,19 +26,17 @@ export const Header = () => {
26
26
[ onClosePanel , logo ] ,
27
27
) ;
28
28
29
- if ( ! logo ) {
30
- return null ;
31
- }
32
-
33
29
return (
34
30
< div className = { b ( 'header' , { [ 'with-decoration' ] : headerDecoration } ) } >
35
- < Logo
36
- { ...logo }
37
- onClick = { onLogoClick }
38
- compact = { compact }
39
- buttonWrapperClassName = { b ( 'logo-button-wrapper' ) }
40
- buttonClassName = { b ( 'logo-button' ) }
41
- />
31
+ { logo && (
32
+ < Logo
33
+ { ...logo }
34
+ onClick = { onLogoClick }
35
+ compact = { compact }
36
+ buttonWrapperClassName = { b ( 'logo-button-wrapper' ) }
37
+ buttonClassName = { b ( 'logo-button' ) }
38
+ />
39
+ ) }
42
40
43
41
< CompositeBar
44
42
type = "subheader"
You can’t perform that action at this time.
0 commit comments