|
|
@@ -47,6 +47,7 @@ import { |
|
|
|
isPrimaryLoggedIn, |
|
|
|
isCreditorLoggedIn, |
|
|
|
isINDLoggedIn, |
|
|
|
isPasswordExpiry, |
|
|
|
// isORGLoggedIn, |
|
|
|
// getUserId |
|
|
|
} from "utils/Utils"; |
|
|
@@ -84,120 +85,179 @@ function Header(props) { |
|
|
|
const loginContent = ( |
|
|
|
isGLDLoggedIn() ? |
|
|
|
<div id="adminContent"> |
|
|
|
<li> |
|
|
|
<Link className="dashboard" to='/dashboard'> |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }} > |
|
|
|
Dashboard |
|
|
|
</Typography> |
|
|
|
</Link> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<Link className="application" to='/application/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Application</Typography></Link> |
|
|
|
</li> |
|
|
|
{ |
|
|
|
isGrantedAny(["VIEW_PROOF", "MAINTAIN_PROOF"]) ? |
|
|
|
{isPasswordExpiry()? |
|
|
|
<div id="passwordExpiryedContent"> |
|
|
|
<li> |
|
|
|
<Link className="proof" to='/proof/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Proof</Typography></Link> |
|
|
|
<Link className="manageUser" to={'/user/changePassword'}> |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> |
|
|
|
<FormattedMessage id="userChangePassword" /> |
|
|
|
</Typography> |
|
|
|
</Link> |
|
|
|
</li> |
|
|
|
</div> |
|
|
|
: |
|
|
|
<div id="adminContentList"> |
|
|
|
<li> |
|
|
|
<Link className="dashboard" to='/dashboard'> |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }} > |
|
|
|
Dashboard |
|
|
|
</Typography> |
|
|
|
</Link> |
|
|
|
</li> |
|
|
|
: <></> |
|
|
|
} |
|
|
|
|
|
|
|
{ |
|
|
|
isGrantedAny(["MAINTAIN_PAYMENT", "MAINTAIN_RECON", "VIEW_DEMANDNOTE", "MAINTAIN_DEMANDNOTE"]) ? |
|
|
|
<li> |
|
|
|
<Link className="paymentTop" ><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Payment</Typography><KeyboardArrowDownIcon sx={{ fontSize: '1vw' }} /></Link> |
|
|
|
<ul className='dropdown'> |
|
|
|
{ |
|
|
|
isGranted("MAINTAIN_DEMANDNOTE") ? |
|
|
|
<li> |
|
|
|
<Link className="exportDemandNote" to='/paymentPage/exportGDN' ><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Export for GDN</Typography></Link> |
|
|
|
</li> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
<Link className="application" to='/application/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Application</Typography></Link> |
|
|
|
</li> |
|
|
|
{ |
|
|
|
isGrantedAny(["VIEW_PROOF", "MAINTAIN_PROOF"]) ? |
|
|
|
<li> |
|
|
|
<Link className="proof" to='/proof/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Proof</Typography></Link> |
|
|
|
</li> |
|
|
|
: <></> |
|
|
|
} |
|
|
|
|
|
|
|
{ |
|
|
|
isGranted("MAINTAIN_PAYMENT") ? |
|
|
|
<li> |
|
|
|
<Link className="application" to='/application/markAsPaid/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Mark Payment</Typography></Link> |
|
|
|
</li> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
{ |
|
|
|
isGrantedAny(["MAINTAIN_PAYMENT", "MAINTAIN_RECON", "VIEW_DEMANDNOTE", "MAINTAIN_DEMANDNOTE"]) ? |
|
|
|
<li> |
|
|
|
<Link className="paymentTop" ><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Payment</Typography><KeyboardArrowDownIcon sx={{ fontSize: '1vw' }} /></Link> |
|
|
|
<ul className='dropdown'> |
|
|
|
{ |
|
|
|
isGranted("MAINTAIN_DEMANDNOTE") ? |
|
|
|
<li> |
|
|
|
<Link className="exportDemandNote" to='/paymentPage/exportGDN' ><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Export for GDN</Typography></Link> |
|
|
|
</li> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
|
|
|
|
{ |
|
|
|
isGranted("MAINTAIN_PAYMENT") ? |
|
|
|
<li> |
|
|
|
<Link className="payment" to='/paymentPage/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Online Payment Record</Typography></Link> |
|
|
|
</li> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
|
|
|
|
{ |
|
|
|
isGranted("MAINTAIN_RECON") ? |
|
|
|
<> |
|
|
|
<li> |
|
|
|
<Link className="downloadXML" to='/gfmis/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>GFMIS Generate XML</Typography></Link> |
|
|
|
</li> |
|
|
|
</> |
|
|
|
{ |
|
|
|
isGranted("MAINTAIN_PAYMENT") ? |
|
|
|
<li> |
|
|
|
<Link className="application" to='/application/markAsPaid/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Mark Payment</Typography></Link> |
|
|
|
</li> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
|
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
{ |
|
|
|
isGranted("MAINTAIN_PAYMENT") ? |
|
|
|
<li> |
|
|
|
<Link className="payment" to='/paymentPage/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Online Payment Record</Typography></Link> |
|
|
|
</li> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
|
|
|
|
{ |
|
|
|
isGranted("MAINTAIN_RECON") ? |
|
|
|
<> |
|
|
|
<li> |
|
|
|
<Link className="downloadXML" to='/gfmis/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>GFMIS Generate XML</Typography></Link> |
|
|
|
</li> |
|
|
|
</> |
|
|
|
|
|
|
|
{ |
|
|
|
isGranted("MAINTAIN_DEMANDNOTE") ? |
|
|
|
<li> |
|
|
|
<Link className="createDemandNote" to='/paymentPage/createDemandNote' ><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Create Demand Note</Typography></Link> |
|
|
|
</li> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
|
|
|
|
{ |
|
|
|
isGrantedAny(["VIEW_DEMANDNOTE", "MAINTAIN_DEMANDNOTE"]) ? |
|
|
|
<li> |
|
|
|
<Link className="demandNote" to='/paymentPage/demandNote' ><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Demand Note</Typography></Link> |
|
|
|
</li> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
{ |
|
|
|
isGranted("MAINTAIN_RECON") ? |
|
|
|
<> |
|
|
|
<li> |
|
|
|
<Link className="reconReport" to='/paymentPage/reconReport'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Recon Report</Typography></Link> |
|
|
|
</li> |
|
|
|
</> |
|
|
|
{ |
|
|
|
isGranted("MAINTAIN_DEMANDNOTE") ? |
|
|
|
<li> |
|
|
|
<Link className="createDemandNote" to='/paymentPage/createDemandNote' ><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Create Demand Note</Typography></Link> |
|
|
|
</li> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
{ |
|
|
|
isGrantedAny(["VIEW_DEMANDNOTE", "MAINTAIN_DEMANDNOTE"]) ? |
|
|
|
<li> |
|
|
|
<Link className="demandNote" to='/paymentPage/demandNote' ><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Demand Note</Typography></Link> |
|
|
|
</li> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
{ |
|
|
|
isGranted("MAINTAIN_RECON") ? |
|
|
|
<> |
|
|
|
<li> |
|
|
|
<Link className="reconReport" to='/paymentPage/reconReport'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Recon Report</Typography></Link> |
|
|
|
</li> |
|
|
|
</> |
|
|
|
|
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
|
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
</ul> |
|
|
|
</li> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
|
|
|
|
</ul> |
|
|
|
</li> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
{ |
|
|
|
isGrantedAny(["VIEW_USER", "MAINTAIN_USER", "VIEW_ORG", "MAINTAIN_ORG", "VIEW_GROUP", "MAINTAIN_GROUP"]) ? |
|
|
|
<li> |
|
|
|
<Link className="client" ><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Client</Typography><KeyboardArrowDownIcon sx={{ fontSize: '1vw' }} /></Link> |
|
|
|
<ul className='dropdown'> |
|
|
|
{ |
|
|
|
isGrantedAny(["VIEW_USER", "MAINTAIN_USER"]) ? |
|
|
|
<> |
|
|
|
<li> |
|
|
|
<Link className="userSearchview" to='/userSearchview'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>Users (GLD)</Typography></Link> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<Link className="indUser" to='/indUser'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>Users (Individual)</Typography></Link> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<Link className="orgUser" to='/orgUser'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>Users (Organisation)</Typography></Link> |
|
|
|
</li> |
|
|
|
</> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
|
|
|
|
{ |
|
|
|
isGrantedAny(["VIEW_ORG", "MAINTAIN_ORG"]) ? |
|
|
|
<li> |
|
|
|
<Link className="org" to='/org'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>Organisation</Typography></Link> |
|
|
|
</li> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
|
|
|
|
{ |
|
|
|
isGrantedAny(["VIEW_GROUP", "MAINTAIN_GROUP"]) ? |
|
|
|
<li> |
|
|
|
<Link className="usergroupSearchview" to='/usergroupSearchview'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>User Group</Typography></Link> |
|
|
|
</li> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
|
|
|
|
{ |
|
|
|
isGrantedAny(["VIEW_USER", "MAINTAIN_USER", "VIEW_ORG", "MAINTAIN_ORG", "VIEW_GROUP", "MAINTAIN_GROUP"]) ? |
|
|
|
</ul> |
|
|
|
</li> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
<li> |
|
|
|
<Link className="client" ><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Client</Typography><KeyboardArrowDownIcon sx={{ fontSize: '1vw' }} /></Link> |
|
|
|
<Link className="setting" ><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Settings</Typography><KeyboardArrowDownIcon sx={{ fontSize: '1vw' }} /></Link> |
|
|
|
<ul className='dropdown'> |
|
|
|
<li> |
|
|
|
<Link className="userProfileGld" to='/user/profile'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>My Profile</Typography></Link> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<Link className="manageUser" to={'/user/changePassword'}> |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> |
|
|
|
<FormattedMessage id="userChangePassword" /> |
|
|
|
</Typography> |
|
|
|
</Link> |
|
|
|
</li> |
|
|
|
{ |
|
|
|
isGrantedAny(["VIEW_USER", "MAINTAIN_USER"]) ? |
|
|
|
isGranted("MAINTAIN_GAZETTE_ISSUE") ? |
|
|
|
<> |
|
|
|
<li> |
|
|
|
<Link className="userSearchview" to='/userSearchview'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>Users (GLD)</Typography></Link> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<Link className="indUser" to='/indUser'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>Users (Individual)</Typography></Link> |
|
|
|
<Link className="holidaySetting" to='/setting/holiday'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>Holiday Settings</Typography></Link> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<Link className="orgUser" to='/orgUser'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>Users (Organisation)</Typography></Link> |
|
|
|
<Link className="gazetteissueSetting" to='/setting/gazetteissuepage'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>Gazette Issues</Typography></Link> |
|
|
|
</li> |
|
|
|
</> |
|
|
|
: |
|
|
@@ -205,238 +265,209 @@ function Header(props) { |
|
|
|
} |
|
|
|
|
|
|
|
{ |
|
|
|
isGrantedAny(["VIEW_ORG", "MAINTAIN_ORG"]) ? |
|
|
|
isGranted("MAINTAIN_ANNOUNCEMENT") ? |
|
|
|
<li> |
|
|
|
<Link className="org" to='/org'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>Organisation</Typography></Link> |
|
|
|
<Link className="announcement" to='/setting/announcement'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>Announcement</Typography></Link> |
|
|
|
</li> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
|
|
|
|
{isGranted("MAINTAIN_EMAIL") ? |
|
|
|
<li> |
|
|
|
<Link className="emailTemplate" to='/setting/emailTemplate'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>Email Template</Typography></Link> |
|
|
|
</li> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
|
|
|
|
{ |
|
|
|
isGrantedAny(["VIEW_GROUP", "MAINTAIN_GROUP"]) ? |
|
|
|
isGranted("MAINTAIN_DR") ? |
|
|
|
<li> |
|
|
|
<Link className="usergroupSearchview" to='/usergroupSearchview'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>User Group</Typography></Link> |
|
|
|
<Link className="drImport" to='/setting/drImport'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>DR Import</Typography></Link> |
|
|
|
</li> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
|
|
|
|
</ul> |
|
|
|
</li> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
<li> |
|
|
|
<Link className="setting" ><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Settings</Typography><KeyboardArrowDownIcon sx={{ fontSize: '1vw' }} /></Link> |
|
|
|
<ul className='dropdown'> |
|
|
|
<li> |
|
|
|
<Link className="userProfileGld" to='/user/profile'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>My Profile</Typography></Link> |
|
|
|
</li> |
|
|
|
{ |
|
|
|
isGranted("MAINTAIN_GAZETTE_ISSUE") ? |
|
|
|
<> |
|
|
|
<li> |
|
|
|
<Link className="holidaySetting" to='/setting/holiday'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>Holiday Settings</Typography></Link> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<Link className="gazetteissueSetting" to='/setting/gazetteissuepage'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>Gazette Issues</Typography></Link> |
|
|
|
</li> |
|
|
|
</> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
{ |
|
|
|
isGranted("MAINTAIN_SETTING") ? |
|
|
|
<li> |
|
|
|
<Link className="systemSetting" to='/setting/sys'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>System Settings</Typography></Link> |
|
|
|
</li> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
|
|
|
|
{ |
|
|
|
isGranted("MAINTAIN_ANNOUNCEMENT") ? |
|
|
|
<li> |
|
|
|
<Link className="announcement" to='/setting/announcement'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>Announcement</Typography></Link> |
|
|
|
<Link className="auditLogSetting" to='/setting/auditLog'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>Audit Log</Typography></Link> |
|
|
|
</li> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
|
|
|
|
{isGranted("MAINTAIN_EMAIL") ? |
|
|
|
</ul> |
|
|
|
</li> |
|
|
|
<Box sx={{ display: { xs: 'none', sm: 'none', md: 'block' } }}> |
|
|
|
<li> |
|
|
|
<Link className="emailTemplate" to='/setting/emailTemplate'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>Email Template</Typography></Link> |
|
|
|
<Link className="logout" onClick={handleLogout}><Typography variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}>Logout</Typography></Link> |
|
|
|
</li> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
|
|
|
|
{ |
|
|
|
isGranted("MAINTAIN_DR") ? |
|
|
|
<li> |
|
|
|
<Link className="drImport" to='/setting/drImport'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>DR Import</Typography></Link> |
|
|
|
</li> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
|
|
|
|
{ |
|
|
|
isGranted("MAINTAIN_SETTING") ? |
|
|
|
<li> |
|
|
|
<Link className="systemSetting" to='/setting/sys'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>System Settings</Typography></Link> |
|
|
|
</li> |
|
|
|
: |
|
|
|
<></> |
|
|
|
} |
|
|
|
|
|
|
|
<li> |
|
|
|
<Link className="auditLogSetting" to='/setting/auditLog'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>Audit Log</Typography></Link> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</li> |
|
|
|
<Box sx={{ display: { xs: 'none', sm: 'none', md: 'block' } }}> |
|
|
|
<li> |
|
|
|
<Link className="logout" onClick={handleLogout}><Typography variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}>Logout</Typography></Link> |
|
|
|
</li> |
|
|
|
</Box> |
|
|
|
</Box> |
|
|
|
</div> |
|
|
|
} |
|
|
|
</div> |
|
|
|
: |
|
|
|
<div id="individualUserContent"> |
|
|
|
<li> |
|
|
|
<Link className="dashboard" to='/dashboard'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}> |
|
|
|
<FormattedMessage id="mainPage" /> |
|
|
|
</Typography></Link> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<Link className="myDocumet" to='/publicNotice'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}> |
|
|
|
<FormattedMessage id="myPublicNotice" /> |
|
|
|
</Typography></Link> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<Link className="documentRecord" to='/proof/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}> |
|
|
|
<FormattedMessage id="proofRecord" /> |
|
|
|
</Typography></Link> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
{isCreditorLoggedIn() ? |
|
|
|
<> |
|
|
|
<Link className="paymentRecord"> |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}> |
|
|
|
<FormattedMessage id="paymentHistory" /> |
|
|
|
</Typography> |
|
|
|
<KeyboardArrowDownIcon sx={{ fontSize: '1.0rem' }} /> |
|
|
|
</Link> |
|
|
|
<ul className='dropdown'> |
|
|
|
<li> |
|
|
|
<Link className="manageOrgUser" to='/paymentPage/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}> |
|
|
|
<FormattedMessage id="onlinePaymentHistory" /> |
|
|
|
</Typography></Link> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<Link className="manageOrgUser" to='/paymentPage/demandNote'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}> |
|
|
|
<FormattedMessage id="paymentInfoRecord" /> |
|
|
|
</Typography></Link> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</> |
|
|
|
: |
|
|
|
<Link className="manageOrgUser" to='/paymentPage/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}> |
|
|
|
<FormattedMessage id="onlinePaymentHistory" /> |
|
|
|
</Typography></Link> |
|
|
|
} |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
|
|
|
|
{isPrimaryLoggedIn() ? |
|
|
|
<> |
|
|
|
<Link className="userSetting" > |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }} onClick={(event) => console.log(event)}> |
|
|
|
<FormattedMessage id="setting" /> |
|
|
|
{isPasswordExpiry()? |
|
|
|
<div id="passwordExpiryedContent"> |
|
|
|
<li> |
|
|
|
<Link className="manageUser" to={'/user/changePassword'}> |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> |
|
|
|
<FormattedMessage id="userChangePassword" /> |
|
|
|
</Typography> |
|
|
|
<KeyboardArrowDownIcon sx={{ fontSize: '1.0rem' }} /> |
|
|
|
</Link> |
|
|
|
<ul className='dropdown' style={{ width: "max-content" }}> |
|
|
|
<li> |
|
|
|
<Link className="manageOrgUser" to='setting/manageUser'> |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> |
|
|
|
<FormattedMessage id="companyOrUserRecord" /> |
|
|
|
</Typography> |
|
|
|
</Link> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<Link className="manageUser" to={'/orgUser'}> |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> |
|
|
|
{/* <FormattedMessage id="companyOrUserRecord" /> */} |
|
|
|
<FormattedMessage id="userProfile" /> |
|
|
|
</Typography> |
|
|
|
</Link> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<Link className="manageUser" to={'/user/changePassword'}> |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> |
|
|
|
<FormattedMessage id="userChangePassword" /> |
|
|
|
</li> |
|
|
|
</div> |
|
|
|
: |
|
|
|
<div id="individualUserContentList"> |
|
|
|
<li> |
|
|
|
<Link className="dashboard" to='/dashboard'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}> |
|
|
|
<FormattedMessage id="mainPage" /> |
|
|
|
</Typography></Link> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<Link className="myDocumet" to='/publicNotice'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}> |
|
|
|
<FormattedMessage id="myPublicNotice" /> |
|
|
|
</Typography></Link> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<Link className="documentRecord" to='/proof/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}> |
|
|
|
<FormattedMessage id="proofRecord" /> |
|
|
|
</Typography></Link> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
{isCreditorLoggedIn() ? |
|
|
|
<> |
|
|
|
<Link className="paymentRecord"> |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}> |
|
|
|
<FormattedMessage id="paymentHistory" /> |
|
|
|
</Typography> |
|
|
|
<KeyboardArrowDownIcon sx={{ fontSize: '1.0rem' }} /> |
|
|
|
</Link> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<Link className="manageUser" to={'/org'}> |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> |
|
|
|
{/* <FormattedMessage id="companyOrUserRecord" /> */} |
|
|
|
<FormattedMessage id="organizationProfile" /> |
|
|
|
<ul className='dropdown'> |
|
|
|
<li> |
|
|
|
<Link className="manageOrgUser" to='/paymentPage/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}> |
|
|
|
<FormattedMessage id="onlinePaymentHistory" /> |
|
|
|
</Typography></Link> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<Link className="manageOrgUser" to='/paymentPage/demandNote'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}> |
|
|
|
<FormattedMessage id="paymentInfoRecord" /> |
|
|
|
</Typography></Link> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</> |
|
|
|
: |
|
|
|
<Link className="manageOrgUser" to='/paymentPage/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}> |
|
|
|
<FormattedMessage id="onlinePaymentHistory" /> |
|
|
|
</Typography></Link> |
|
|
|
} |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
|
|
|
|
{isPrimaryLoggedIn() ? |
|
|
|
<> |
|
|
|
<Link className="userSetting" > |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }} onClick={(event) => console.log(event)}> |
|
|
|
<FormattedMessage id="setting" /> |
|
|
|
</Typography> |
|
|
|
<KeyboardArrowDownIcon sx={{ fontSize: '1.0rem' }} /> |
|
|
|
</Link> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</> |
|
|
|
: |
|
|
|
isINDLoggedIn() ? |
|
|
|
<> |
|
|
|
<Link className="userSetting" > |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }} onClick={(event) => console.log(event)}> |
|
|
|
<FormattedMessage id="setting" /> |
|
|
|
</Typography> |
|
|
|
<KeyboardArrowDownIcon sx={{ fontSize: '1.0rem' }} /> |
|
|
|
</Link> |
|
|
|
<ul className='dropdown' style={{ width: "max-content" }}> |
|
|
|
<li> |
|
|
|
<Link className="manageUser" to={'/indUser'}> |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> |
|
|
|
{/* <FormattedMessage id="companyOrUserRecord" /> */} |
|
|
|
<FormattedMessage id="userProfile" /> |
|
|
|
</Typography> |
|
|
|
</Link> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<Link className="manageUser" to={'/user/changePassword'}> |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> |
|
|
|
<FormattedMessage id="userChangePassword" /> |
|
|
|
</Typography> |
|
|
|
</Link> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</> |
|
|
|
: |
|
|
|
<> |
|
|
|
<Link className="userSetting" > |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }} onClick={(event) => console.log(event)}> |
|
|
|
<FormattedMessage id="setting" /> |
|
|
|
</Typography> |
|
|
|
<KeyboardArrowDownIcon sx={{ fontSize: '1.0rem' }} /> |
|
|
|
</Link> |
|
|
|
<ul className='dropdown' style={{ width: "max-content" }}> |
|
|
|
<li> |
|
|
|
<Link className="manageUser" to={'/orgUser'}> |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> |
|
|
|
<FormattedMessage id="userProfile" /> |
|
|
|
<ul className='dropdown' style={{ width: "max-content" }}> |
|
|
|
<li> |
|
|
|
<Link className="manageOrgUser" to='setting/manageUser'> |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> |
|
|
|
<FormattedMessage id="companyOrUserRecord" /> |
|
|
|
</Typography> |
|
|
|
</Link> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<Link className="manageUser" to={'/orgUser'}> |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> |
|
|
|
{/* <FormattedMessage id="companyOrUserRecord" /> */} |
|
|
|
<FormattedMessage id="userProfile" /> |
|
|
|
</Typography> |
|
|
|
</Link> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<Link className="manageUser" to={'/user/changePassword'}> |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> |
|
|
|
<FormattedMessage id="userChangePassword" /> |
|
|
|
</Typography> |
|
|
|
</Link> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<Link className="manageUser" to={'/org'}> |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> |
|
|
|
{/* <FormattedMessage id="companyOrUserRecord" /> */} |
|
|
|
<FormattedMessage id="organizationProfile" /> |
|
|
|
</Typography> |
|
|
|
</Link> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</> |
|
|
|
: |
|
|
|
isINDLoggedIn() ? |
|
|
|
<> |
|
|
|
<Link className="userSetting" > |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }} onClick={(event) => console.log(event)}> |
|
|
|
<FormattedMessage id="setting" /> |
|
|
|
</Typography> |
|
|
|
<KeyboardArrowDownIcon sx={{ fontSize: '1.0rem' }} /> |
|
|
|
</Link> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<Link className="manageUser" to={'/user/changePassword'}> |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> |
|
|
|
<FormattedMessage id="userChangePassword" /> |
|
|
|
<ul className='dropdown' style={{ width: "max-content" }}> |
|
|
|
<li> |
|
|
|
<Link className="manageUser" to={'/indUser'}> |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> |
|
|
|
{/* <FormattedMessage id="companyOrUserRecord" /> */} |
|
|
|
<FormattedMessage id="userProfile" /> |
|
|
|
</Typography> |
|
|
|
</Link> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<Link className="manageUser" to={'/user/changePassword'}> |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> |
|
|
|
<FormattedMessage id="userChangePassword" /> |
|
|
|
</Typography> |
|
|
|
</Link> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</> |
|
|
|
: |
|
|
|
<> |
|
|
|
<Link className="userSetting" > |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }} onClick={(event) => console.log(event)}> |
|
|
|
<FormattedMessage id="setting" /> |
|
|
|
</Typography> |
|
|
|
<KeyboardArrowDownIcon sx={{ fontSize: '1.0rem' }} /> |
|
|
|
</Link> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</> |
|
|
|
} |
|
|
|
</li> |
|
|
|
<ul className='dropdown' style={{ width: "max-content" }}> |
|
|
|
<li> |
|
|
|
<Link className="manageUser" to={'/orgUser'}> |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> |
|
|
|
<FormattedMessage id="userProfile" /> |
|
|
|
</Typography> |
|
|
|
</Link> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<Link className="manageUser" to={'/user/changePassword'}> |
|
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> |
|
|
|
<FormattedMessage id="userChangePassword" /> |
|
|
|
</Typography> |
|
|
|
</Link> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</> |
|
|
|
} |
|
|
|
</li> |
|
|
|
</div> |
|
|
|
} |
|
|
|
<Box sx={{ display: { xs: 'none', sm: 'none', md: 'block' } }}> |
|
|
|
<li> |
|
|
|
<Link className="logout" onClick={handleLogout}><Typography variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> |
|
|
|