Design fixes (#665)
This commit is contained in:
@ -0,0 +1,6 @@
|
||||
import { useLocation } from 'react-router-dom';
|
||||
|
||||
export function useIsSubNavbarDisplayed() {
|
||||
const currentPath = useLocation().pathname;
|
||||
return currentPath.match(/\/settings\//g) !== null;
|
||||
}
|
||||
Reference in New Issue
Block a user