diff --git a/.changeset/rich-pillows-hang.md b/.changeset/rich-pillows-hang.md new file mode 100644 index 0000000000000000000000000000000000000000..b714a5e6acd952c29101da11e8f07c6095b69674 --- /dev/null +++ b/.changeset/rich-pillows-hang.md @@ -0,0 +1,5 @@ +--- +'@rocket.chat/meteor': patch +--- + +Fixes the `expanded` prop being accidentally forwarded to `ContextualbarHeader` diff --git a/apps/meteor/client/components/Contextualbar/ContextualbarHeader.tsx b/apps/meteor/client/components/Contextualbar/ContextualbarHeader.tsx index 795182df8465abdf5a13e011adb129ba2fdbd6cf..ebd92f0095e34cd0929fb2f29546379366388383 100644 --- a/apps/meteor/client/components/Contextualbar/ContextualbarHeader.tsx +++ b/apps/meteor/client/components/Contextualbar/ContextualbarHeader.tsx @@ -8,10 +8,10 @@ type ContextualbarHeaderProps = { children: ReactNode; } & ComponentPropsWithoutRef<typeof ContextualbarHeaderComponent>; -const ContextualbarHeader = (props: ContextualbarHeaderProps) => ( +const ContextualbarHeader = ({ expanded, ...props }: ContextualbarHeaderProps) => ( <FeaturePreview feature='newNavigation'> <FeaturePreviewOff> - <ContextualbarHeaderComponent height={props.expanded ? '64px' : '56px'} {...props} /> + <ContextualbarHeaderComponent height={expanded ? '64px' : '56px'} {...props} /> </FeaturePreviewOff> <FeaturePreviewOn> <ContextualbarV2Header mbs={-1} {...props} />