fix: remove doublicate href

This commit is contained in:
Jewgeni Lewash 2024-03-06 11:27:09 +01:00
parent 38e06edcf1
commit 5ea473efdb

View File

@ -1,7 +1,6 @@
--- ---
const { pathname } = Astro.url; const { pathname } = Astro.url;
const { class: className, ...props } = Astro.props; const { class: className, href, ...props } = Astro.props;
const href = props.href;
const isActive = href === pathname || href === pathname.replace(/\/$/, ''); const isActive = href === pathname || href === pathname.replace(/\/$/, '');
--- ---