From b17e7d2613286523046db3c827f95dba7f33034b Mon Sep 17 00:00:00 2001 From: camilovegag Date: Mon, 29 Apr 2024 11:26:32 -0500 Subject: [PATCH] At end boolean to handle active styles at nav link --- packages/berlin/src/components/nav-button/NavButton.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/berlin/src/components/nav-button/NavButton.tsx b/packages/berlin/src/components/nav-button/NavButton.tsx index fcb26ef4..d1aec6e6 100644 --- a/packages/berlin/src/components/nav-button/NavButton.tsx +++ b/packages/berlin/src/components/nav-button/NavButton.tsx @@ -6,11 +6,12 @@ type NavButtonProps = { $color?: 'primary' | 'secondary'; children: React.ReactNode; onClick?: () => void; + end?: boolean; }; -function NavButton({ to, children, $color = 'primary', onClick }: NavButtonProps) { +function NavButton({ to, children, end, $color = 'primary', onClick }: NavButtonProps) { return ( - +