Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: revamped top-nav component #2392

Merged
merged 15 commits into from
Oct 29, 2024
9 changes: 9 additions & 0 deletions .changeset/wicked-oranges-whisper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@razorpay/blade": minor
---

feat(blade): revamped top-nav component

> NOTE:
> This might be a breaking change for you, if your project uses the older deprecated TopNav.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const _MenuHeader = ({
testID,
}: MenuHeaderProps): React.ReactElement => {
return (
<>
<Box marginBottom="spacing.3">
<BaseHeader
title={title}
subtitle={subtitle}
Expand All @@ -37,7 +37,7 @@ const _MenuHeader = ({
showDivider={false}
/>
<MenuDivider />
</>
</Box>
);
};

Expand All @@ -47,7 +47,7 @@ const MenuHeader = assignWithoutSideEffects(_MenuHeader, {

const _MenuFooter = ({ children, testID }: MenuFooterProps): React.ReactElement => {
return (
<Box marginTop="spacing.2">
<Box marginTop="spacing.3">
<MenuDivider />
<BaseFooter
metaComponentName={MetaConstants.MenuFooter}
Expand Down
Loading
Loading