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:
parent
ab61e6d890
commit
47b7e5a9c9
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue