Please disable the Secure Boot before running the following commands.
sudo apt install dkms| import { LinkProps, useMatch, useResolvedPath } from 'react-router-dom' | |
| export function useIsActivePath(path: LinkProps['to'], strict = true) { | |
| const resolvedPath = useResolvedPath(path) | |
| const match = useMatch({ path: resolvedPath.pathname, end: strict }) | |
| return match !== null | |
| } |