Refactor login (#748)
* wip refactor login * wip refactor login * Fix lint conflicts * Complete Sign In only * Feature complete * Fix test * Fix test
This commit is contained in:
@ -6,7 +6,7 @@ import { AppBasePath } from '@/types/AppBasePath';
|
||||
export function useIsMatchingLocation() {
|
||||
const location = useLocation();
|
||||
|
||||
return function isMatchingLocation(basePath: AppBasePath, path: string) {
|
||||
return function isMatchingLocation(path: string, basePath?: AppBasePath) {
|
||||
const constructedPath = basePath
|
||||
? parse(`${basePath}/${path}`).pathname ?? ''
|
||||
: path;
|
||||
|
||||
Reference in New Issue
Block a user