Skip to content
Snippets Groups Projects
Unverified Commit 1e1e849e authored by Júlia Jaeger Foresti's avatar Júlia Jaeger Foresti Committed by GitHub
Browse files

fix: `ContextualbarHeader` expanded prop (#33109)

parent 94518af1
No related branches found
No related tags found
No related merge requests found
---
'@rocket.chat/meteor': patch
---
Fixes the `expanded` prop being accidentally forwarded to `ContextualbarHeader`
...@@ -8,10 +8,10 @@ type ContextualbarHeaderProps = { ...@@ -8,10 +8,10 @@ type ContextualbarHeaderProps = {
children: ReactNode; children: ReactNode;
} & ComponentPropsWithoutRef<typeof ContextualbarHeaderComponent>; } & ComponentPropsWithoutRef<typeof ContextualbarHeaderComponent>;
const ContextualbarHeader = (props: ContextualbarHeaderProps) => ( const ContextualbarHeader = ({ expanded, ...props }: ContextualbarHeaderProps) => (
<FeaturePreview feature='newNavigation'> <FeaturePreview feature='newNavigation'>
<FeaturePreviewOff> <FeaturePreviewOff>
<ContextualbarHeaderComponent height={props.expanded ? '64px' : '56px'} {...props} /> <ContextualbarHeaderComponent height={expanded ? '64px' : '56px'} {...props} />
</FeaturePreviewOff> </FeaturePreviewOff>
<FeaturePreviewOn> <FeaturePreviewOn>
<ContextualbarV2Header mbs={-1} {...props} /> <ContextualbarV2Header mbs={-1} {...props} />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment