Removing the dropdown from the Masters page.
This commit is contained in:
parent
2be4a56a8c
commit
9498ff0488
@ -1,4 +1,4 @@
|
||||
import { useCallback, useEffect, useState,useMemo } from "react";
|
||||
import { useCallback, useEffect, useState, useMemo } from "react";
|
||||
import getGreetingMessage from "../../utils/greetingHandler";
|
||||
import {
|
||||
cacheData,
|
||||
@ -40,11 +40,12 @@ const Header = () => {
|
||||
const isProjectPath = pathname === "/projects";
|
||||
const isDirectory = pathname === "/directory";
|
||||
const isEmployeeList = pathname === "/employees";
|
||||
const isMasters = pathname === "/masters";
|
||||
// const isExpense = pathname === "/expenses";
|
||||
const isEmployeeProfile = UUID_REGEX.test(pathname);
|
||||
|
||||
const hideDropPaths =
|
||||
isDirectory || isEmployeeList || isEmployeeProfile;
|
||||
isDirectory || isEmployeeList || isMasters || isEmployeeProfile;
|
||||
|
||||
const showProjectDropdown = !hideDropPaths;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user