Migrate to a monorepo structure (#2909)
This commit is contained in:
@ -0,0 +1,4 @@
|
||||
import { useLocation } from 'react-router-dom';
|
||||
|
||||
export const useIsSettingsPage = () =>
|
||||
useLocation().pathname.match(/\/settings\//g) !== null;
|
||||
@ -0,0 +1,3 @@
|
||||
import { useLocation } from 'react-router-dom';
|
||||
|
||||
export const useIsTasksPage = () => useLocation().pathname === '/tasks';
|
||||
Reference in New Issue
Block a user