fix: remove doublicate href
This commit is contained in:
parent
38e06edcf1
commit
5ea473efdb
@ -1,7 +1,6 @@
|
||||
---
|
||||
const { pathname } = Astro.url;
|
||||
const { class: className, ...props } = Astro.props;
|
||||
const href = props.href;
|
||||
const { class: className, href, ...props } = Astro.props;
|
||||
const isActive = href === pathname || href === pathname.replace(/\/$/, '');
|
||||
---
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user