|
@@ -41,16 +41,17 @@ import AdminLogo from 'components/AdminLogo'; |
|
|
import MobileLogo from 'components/MobileLogo'; |
|
|
import MobileLogo from 'components/MobileLogo'; |
|
|
//import Profile from './HeaderContent/Profile'; |
|
|
//import Profile from './HeaderContent/Profile'; |
|
|
import "assets/style/navbarStyles.css"; |
|
|
import "assets/style/navbarStyles.css"; |
|
|
import { |
|
|
|
|
|
isUserLoggedIn, |
|
|
|
|
|
isGLDLoggedIn, |
|
|
|
|
|
isPrimaryLoggedIn, |
|
|
|
|
|
|
|
|
import { |
|
|
|
|
|
isUserLoggedIn, |
|
|
|
|
|
isGLDLoggedIn, |
|
|
|
|
|
isPrimaryLoggedIn, |
|
|
isCreditorLoggedIn, |
|
|
isCreditorLoggedIn, |
|
|
isINDLoggedIn, |
|
|
isINDLoggedIn, |
|
|
// isORGLoggedIn, |
|
|
// isORGLoggedIn, |
|
|
// getUserId |
|
|
// getUserId |
|
|
} from "utils/Utils"; |
|
|
} from "utils/Utils"; |
|
|
import { handleLogoutFunction } from 'auth/index'; |
|
|
import { handleLogoutFunction } from 'auth/index'; |
|
|
|
|
|
import { isGranted, isGrantedAny } from "auth/utils"; |
|
|
|
|
|
|
|
|
// assets |
|
|
// assets |
|
|
// import { MenuFoldOutlined,MenuOutlined } from '@ant-design/icons'; |
|
|
// import { MenuFoldOutlined,MenuOutlined } from '@ant-design/icons'; |
|
@@ -93,80 +94,175 @@ function Header(props) { |
|
|
<li> |
|
|
<li> |
|
|
<Link className="application" to='/application/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Application</Typography></Link> |
|
|
<Link className="application" to='/application/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Application</Typography></Link> |
|
|
</li> |
|
|
</li> |
|
|
<li> |
|
|
|
|
|
<Link className="proof" to='/proof/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Proof</Typography></Link> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li> |
|
|
|
|
|
<Link className="paymentTop" ><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Payment</Typography><KeyboardArrowDownIcon sx={{ fontSize: '1vw' }} /></Link> |
|
|
|
|
|
<ul className='dropdown'> |
|
|
|
|
|
<li> |
|
|
|
|
|
<Link className="payment" to='/paymentPage/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Online Payment Record</Typography></Link> |
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
isGrantedAny(["VIEW_PROOF", "MAINTAIN_PROOF"]) ? |
|
|
<li> |
|
|
<li> |
|
|
<Link className="downloadXML" to='/gfmis/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>GFMIS Generate XML</Typography></Link> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li> |
|
|
|
|
|
<Link className="reconReport" to='/paymentPage/reconReport'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Recon Report</Typography></Link> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li> |
|
|
|
|
|
<Link className="createDemandNote" to='/paymentPage/createDemandNote' ><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Create Demand Note</Typography></Link> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li> |
|
|
|
|
|
<Link className="demandNote" to='/paymentPage/demandNote' ><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Demand Note</Typography></Link> |
|
|
|
|
|
</li> |
|
|
|
|
|
</ul> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li> |
|
|
|
|
|
<Link className="client" ><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Client</Typography><KeyboardArrowDownIcon sx={{ fontSize: '1vw' }} /></Link> |
|
|
|
|
|
<ul className='dropdown'> |
|
|
|
|
|
<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> |
|
|
|
|
|
|
|
|
<Link className="proof" to='/proof/search'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Proof</Typography></Link> |
|
|
</li> |
|
|
</li> |
|
|
|
|
|
: <></> |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
isGrantedAny(["MAINTAIN_PAYMENT", "MAINTAIN_RECON", "VIEW_DEMANDNOTE", "MAINTAIN_DEMANDNOTE"]) ? |
|
|
<li> |
|
|
<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="paymentTop" ><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Payment</Typography><KeyboardArrowDownIcon sx={{ fontSize: '1vw' }} /></Link> |
|
|
|
|
|
<ul className='dropdown'> |
|
|
|
|
|
{ |
|
|
|
|
|
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> |
|
|
|
|
|
<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> |
|
|
|
|
|
: |
|
|
|
|
|
<></> |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
</ul> |
|
|
</li> |
|
|
</li> |
|
|
|
|
|
: |
|
|
|
|
|
<></> |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
isGrantedAny(["VIEW_USER", "MAINTAIN_USER", "VIEW_ORG", "MAINTAIN_ORG", "VIEW_GROUP", "MAINTAIN_GROUP"]) ? |
|
|
<li> |
|
|
<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="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> |
|
|
|
|
|
: |
|
|
|
|
|
<></> |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
</ul> |
|
|
</li> |
|
|
</li> |
|
|
|
|
|
: |
|
|
|
|
|
<></> |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</ul> |
|
|
|
|
|
</li> |
|
|
|
|
|
<li> |
|
|
<li> |
|
|
<Link className="setting" ><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}>Settings</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'> |
|
|
<ul className='dropdown'> |
|
|
<li> |
|
|
<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> |
|
|
<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> |
|
|
<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> |
|
|
|
|
|
<li> |
|
|
|
|
|
<Link className="announcement" to='/setting/announcement'><Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 2, mt: 1, mb: 1 }}>Announcement</Typography></Link> |
|
|
|
|
|
</li> |
|
|
|
|
|
<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> |
|
|
|
|
|
<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> |
|
|
|
|
|
<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_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_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> |
|
|
|
|
|
</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> |
|
|
|
|
|
: |
|
|
|
|
|
<></> |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
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> |
|
|
<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> |
|
|
<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> |
|
|
</li> |
|
|
</ul> |
|
|
</ul> |
|
|
</li> |
|
|
</li> |
|
|
<Box sx={{display: {xs: 'none', sm: 'none', md: 'block'}}}> |
|
|
|
|
|
|
|
|
<Box sx={{ display: { xs: 'none', sm: 'none', md: 'block' } }}> |
|
|
<li> |
|
|
<li> |
|
|
<Link className="logout" onClick={handleLogout}><Typography variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}>Logout</Typography></Link> |
|
|
<Link className="logout" onClick={handleLogout}><Typography variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}>Logout</Typography></Link> |
|
|
</li> |
|
|
</li> |
|
@@ -194,7 +290,7 @@ function Header(props) { |
|
|
<> |
|
|
<> |
|
|
<Link className="paymentRecord"> |
|
|
<Link className="paymentRecord"> |
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}> |
|
|
<Typography style={{ opacity: 0.9 }} variant={"pnspsHeaderTitle"} sx={{ ml: 1 }}> |
|
|
<FormattedMessage id="paymentHistory"/> |
|
|
|
|
|
|
|
|
<FormattedMessage id="paymentHistory" /> |
|
|
</Typography> |
|
|
</Typography> |
|
|
<KeyboardArrowDownIcon sx={{ fontSize: '1.0rem' }} /> |
|
|
<KeyboardArrowDownIcon sx={{ fontSize: '1.0rem' }} /> |
|
|
</Link> |
|
|
</Link> |
|
@@ -254,46 +350,46 @@ function Header(props) { |
|
|
</ul> |
|
|
</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> |
|
|
|
|
|
</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" /> |
|
|
|
|
|
</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> |
|
|
|
|
|
<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> |
|
|
|
|
|
</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" /> |
|
|
|
|
|
</Typography> |
|
|
|
|
|
</Link> |
|
|
|
|
|
</li> |
|
|
|
|
|
</ul> |
|
|
|
|
|
</> |
|
|
} |
|
|
} |
|
|
</li> |
|
|
</li> |
|
|
<Box sx={{display: {xs: 'none', sm: 'none', md: 'block'}}}> |
|
|
|
|
|
|
|
|
<Box sx={{ display: { xs: 'none', sm: 'none', md: 'block' } }}> |
|
|
<li> |
|
|
<li> |
|
|
<Link className="logout" onClick={handleLogout}><Typography variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> |
|
|
<Link className="logout" onClick={handleLogout}><Typography variant={"pnspsHeaderTitle"} sx={{ ml: 2 }}> |
|
|
<FormattedMessage id="logout" /> |
|
|
<FormattedMessage id="logout" /> |
|
@@ -328,7 +424,7 @@ function Header(props) { |
|
|
{/* <Typography variant="h6" sx={{ my: 2 }}> |
|
|
{/* <Typography variant="h6" sx={{ my: 2 }}> |
|
|
PNSPS |
|
|
PNSPS |
|
|
</Typography> */} |
|
|
</Typography> */} |
|
|
<Box sx={{ mr: 2, mt:1, display: { md: 'none' } }}> |
|
|
|
|
|
|
|
|
<Box sx={{ mr: 2, mt: 1, display: { md: 'none' } }}> |
|
|
<MobileLogo /> |
|
|
<MobileLogo /> |
|
|
<span id="mobileTitle" >PNSPS</span> |
|
|
<span id="mobileTitle" >PNSPS</span> |
|
|
</Box> |
|
|
</Box> |
|
@@ -347,7 +443,7 @@ function Header(props) { |
|
|
</Stack> |
|
|
</Stack> |
|
|
: |
|
|
: |
|
|
<Stack id="sidebar" direction="column" justifyContent="center" alignItems="center" onClick={handleDrawerToggle} sx={{ textAlign: 'center' }}> |
|
|
<Stack id="sidebar" direction="column" justifyContent="center" alignItems="center" onClick={handleDrawerToggle} sx={{ textAlign: 'center' }}> |
|
|
<Box sx={{ mr: 2, mt:1, display: { md: 'none' } }}> |
|
|
|
|
|
|
|
|
<Box sx={{ mr: 2, mt: 1, display: { md: 'none' } }}> |
|
|
<MobileLogo /> |
|
|
<MobileLogo /> |
|
|
<span id="mobileTitle" >PNSPS</span> |
|
|
<span id="mobileTitle" >PNSPS</span> |
|
|
</Box> |
|
|
</Box> |
|
@@ -395,7 +491,7 @@ function Header(props) { |
|
|
justifyContent="flex-start" |
|
|
justifyContent="flex-start" |
|
|
alignItems="center" |
|
|
alignItems="center" |
|
|
spacing={0} |
|
|
spacing={0} |
|
|
sx={{width:{xs:'100%',md:'25%'}}} |
|
|
|
|
|
|
|
|
sx={{ width: { xs: '100%', md: '25%' } }} |
|
|
> |
|
|
> |
|
|
<Box sx={{ width: '260px', flexGrow: 1, display: { xs: 'none', sm: 'none', md: 'block' } }}> |
|
|
<Box sx={{ width: '260px', flexGrow: 1, display: { xs: 'none', sm: 'none', md: 'block' } }}> |
|
|
<Stack direction="row" justifyContent="flex-start" alignItems="center"> |
|
|
<Stack direction="row" justifyContent="flex-start" alignItems="center"> |
|
@@ -447,8 +543,8 @@ function Header(props) { |
|
|
</ul> |
|
|
</ul> |
|
|
|
|
|
|
|
|
<Grid item> |
|
|
<Grid item> |
|
|
<Grid container direction="column" |
|
|
|
|
|
justifyContent="flex-end" |
|
|
|
|
|
|
|
|
<Grid container direction="column" |
|
|
|
|
|
justifyContent="flex-end" |
|
|
alignItems="center" |
|
|
alignItems="center" |
|
|
> |
|
|
> |
|
|
{ |
|
|
{ |
|
@@ -493,7 +589,7 @@ function Header(props) { |
|
|
alignItems="center" |
|
|
alignItems="center" |
|
|
spacing={0} |
|
|
spacing={0} |
|
|
// width="100%" |
|
|
// width="100%" |
|
|
sx={{width:{xs:'100%',md:'25%'}}} |
|
|
|
|
|
|
|
|
sx={{ width: { xs: '100%', md: '25%' } }} |
|
|
> |
|
|
> |
|
|
<Box sx={{ flexGrow: 1, display: { xs: 'none', sm: 'none', md: 'block' } }}> |
|
|
<Box sx={{ flexGrow: 1, display: { xs: 'none', sm: 'none', md: 'block' } }}> |
|
|
<Stack direction="row" justifyContent="flex-start" alignItems="center" > |
|
|
<Stack direction="row" justifyContent="flex-start" alignItems="center" > |
|
@@ -542,7 +638,7 @@ function Header(props) { |
|
|
</ul> |
|
|
</ul> |
|
|
<LocaleSelector /> |
|
|
<LocaleSelector /> |
|
|
|
|
|
|
|
|
{/*<Profile />*/} |
|
|
|
|
|
|
|
|
{/*<Profile />*/} |
|
|
</Stack> |
|
|
</Stack> |
|
|
</Box> |
|
|
</Box> |
|
|
</Toolbar> |
|
|
</Toolbar> |
|
|