Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
ISTE-9 Addded Division user and state user type
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmoy-eGov committed Apr 24, 2024
1 parent ac7bad3 commit 154a215
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ const TopBar = ({
);
}
const loggedin = userDetails?.access_token ? true : false;
console.log(userDetails,"userDetails")
return (
<div className="topbar">
{mobileView ? <Hamburger handleClick={toggleSidebar} color="#9E9E9E" /> : null}
Expand All @@ -107,9 +108,13 @@ const TopBar = ({
<p className="ulb" style={mobileView ? { fontSize: "14px", display: "inline-block" } : {}}>
{t(cityDetails?.i18nKey).toUpperCase()}{" "}
{t(`ULBGRADE_${cityDetails?.city?.ulbGrade.toUpperCase().replace(" ", "_").replace(".", "_")}`).toUpperCase()}
{` ${userDetails?.info?.roles.some(obj => obj.name === "STATE ADMIN")?` (${userDetails?.info?.name} | State User)`:` (${userDetails?.info?.name} | Division User)`}`}
</p>
) : (
<img className="state" src={logoUrl} />
<div style={{display:"flex"}}>
<img className="state" src={logoUrl} />
<p style={{marginLeft:"5px", fontWeight: "bold"}}>{` ${userDetails?.info?.roles.some(obj => obj.name === "STATE ADMIN")?`(${userDetails?.info?.name} | State User)`:`(${userDetails?.info?.name} | Division User)`}`} </p>
</div>
))}
{!loggedin && (
<p className="ulb" style={mobileView ? { fontSize: "14px", display: "inline-block" } : {}}>
Expand Down

0 comments on commit 154a215

Please sign in to comment.