diff --git a/packages/nulp_elite/src/components/header.js b/packages/nulp_elite/src/components/header.js index 4c094f4c..1397acd4 100644 --- a/packages/nulp_elite/src/components/header.js +++ b/packages/nulp_elite/src/components/header.js @@ -2,20 +2,14 @@ import React, { useState, useEffect } from "react"; import AppBar from "@mui/material/AppBar"; import Box from "@mui/material/Box"; import Toolbar from "@mui/material/Toolbar"; -import Typography from "@mui/material/Typography"; import Menu from "@mui/material/Menu"; -import MenuIcon from "@mui/icons-material/Menu"; import Container from "@mui/material/Container"; import Tooltip from "@mui/material/Tooltip"; -import AccountCircleOutlinedIcon from "@mui/icons-material/AccountCircleOutlined"; import TextField from "@mui/material/TextField"; import IconButton from "@mui/material/IconButton"; import { Badge } from "@mui/material"; import SearchIcon from "@mui/icons-material/Search"; import Link from "@mui/material/Link"; -import DevicesIcon from "@mui/icons-material/Devices"; -import WebIcon from "@mui/icons-material/Web"; -import InputLabel from "@mui/material/InputLabel"; import MenuItem from "@mui/material/MenuItem"; import FormControl from "@mui/material/FormControl"; import Select from "@mui/material/Select"; @@ -27,7 +21,6 @@ import LogoutOutlinedIcon from "@mui/icons-material/LogoutOutlined"; import GTranslateIcon from "@mui/icons-material/GTranslate"; import MenuBookOutlinedIcon from "@mui/icons-material/MenuBookOutlined"; import ChatOutlinedIcon from "@mui/icons-material/ChatOutlined"; -import SortOutlinedIcon from "@mui/icons-material/SortOutlined"; import { useNavigate } from "react-router-dom"; import HomeOutlinedIcon from "@mui/icons-material/HomeOutlined"; import * as util from "../services/utilService"; @@ -37,8 +30,6 @@ const routeConfig = require("../configs/routeConfig.json"); import VideocamOutlinedIcon from "@mui/icons-material/VideocamOutlined"; import NotificationsNoneOutlinedIcon from "@mui/icons-material/NotificationsNoneOutlined"; import Groups2OutlinedIcon from "@mui/icons-material/Groups2Outlined"; -import Grid from "@mui/material/Grid"; -import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown"; import { ExpandLess, ExpandMore } from "@mui/icons-material"; import { Collapse, List } from "@mui/material"; import NotificationPopup from "./Notification"; @@ -232,28 +223,15 @@ function Header({ globalSearchQuery }) { }, []); const roleNames = userData?.result?.response?.roles.map((role) => role.role) || []; + + const textFieldStyle = { + fontSize: '12px', + backgroundColor: searchQuery ? '#065872' : 'transparent', + boxShadow: searchQuery ? '0 2px 4px rgba(0, 0, 0, 0.2)' : 'none', + color:searchQuery? '#fff' :"#000" + }; return ( <> - {/* Sidebar Navigation */} - - {/* - - - {" "} - +A - {" "} - - A -{" "} - - - A - {" "} - - - */} - + ), + style: { + color: searchQuery ? '#fff' : '#000', + }, }} /> @@ -316,49 +297,6 @@ function Header({ globalSearchQuery }) { alignItems: "space-between", }} > - {/* Navigation Links */} - {/* - - - - {t("MAIN_CONTENT")}{" "} - - */} - - {/* - - - {t("SCREEN_READER")}{" "} - - */} - {/* Language Select */} - - {/* - - - Text 1 - - - - - Text 2 - - - - - Text 3 - - - */} - {/* - ekta */} - - {/* - - - - - - - - Text 1 - - - - - Text 2 - - - - - Text 3 - - - */} @@ -623,16 +489,6 @@ function Header({ globalSearchQuery }) {
{userData?.result?.response?.firstName[0]}
- {/*
- {userData?.result?.response?.firstName} -
*/} )} @@ -794,17 +650,6 @@ function Header({ globalSearchQuery }) { className="lg-hide lg-mt-10" > - {/* - - */} - {/* - - - Text 1 - - - - - Text 2 - - - - - Text 3 - - - */} {userData?.result?.response?.firstName[0]} - {/*
- {userData?.result?.response?.firstName} -
*/} )} {/* */} @@ -1160,25 +963,6 @@ function Header({ globalSearchQuery }) { - {/* {userData && - userData?.result?.response?.roles?.length === 1 && - [ - "SYSTEM_ADMINISTRATION", - "ORG_ADMIN", - "CONTENT_CREATOR", - ].some((role) => - userData?.result?.response?.roles?.includes(role) - ) && ( - - - {t("DASHBOARD")} - - - )} */} {roleNames.some((role) => ["ORG_ADMIN", "SYSTEM_ADMINISTRATION"].includes( role diff --git a/packages/nulp_elite/src/styles/style.css b/packages/nulp_elite/src/styles/style.css index 3ca9c3c2..56fdf9b5 100644 --- a/packages/nulp_elite/src/styles/style.css +++ b/packages/nulp_elite/src/styles/style.css @@ -3458,10 +3458,6 @@ header .MuiContainer-maxWidthLg { outline: 0; } -.MuiInputBase-adornedEnd { - background: #fff !important; -} - .profile .MuiButtonBase-root:hover { background: rgb(14, 122, 156) !important; }