Removing the dropdown from the Masters page.

This commit is contained in:
Kartik Sharma 2025-10-06 13:17:20 +05:30 committed by pramod.mahajan
parent 2be4a56a8c
commit 9498ff0488

View File

@ -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;