1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-22 19:44:21 +00:00

🐛 Make BaseLinks strict

This commit is contained in:
Steffo 2021-03-23 18:40:55 +01:00
parent ab61e6d890
commit 47b7e5a9c9
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -5,7 +5,10 @@ import {Link, useRouteMatch} from "react-router-dom"
export default function BaseLink({children, className, href, disabled, ...props}) {
const locationMatch = useRouteMatch(href)
const locationMatch = useRouteMatch({
path: href,
strict: true,
})
const activeClassNames = useBluelibClassNames("style-bold", className)
const disabledClassNames = useBluelibClassNames("element-anchor status-disabled", className)