update: add condition for icon TbMenu2 to verifying page
This commit is contained in:
parent
28c314a8ba
commit
3aca0aa9dc
|
|
@ -58,10 +58,11 @@ export default function AppHeader({ toggle, toggleLeftSidebar }: Props) {
|
|||
const { pathname } = useLocation();
|
||||
const showAssessmentResultLinks = pathname === "/assessmentResult";
|
||||
const showAssessmentLinks = pathname === "/assessment";
|
||||
const showVerifyingAssessmentLinks = pathname === "/verifying";
|
||||
const assessmentRequestsLinks = pathname === "/assessmentRequest";
|
||||
const managementResultsLinks = pathname === "/assessmentResultsManagement";
|
||||
|
||||
const shouldShowButton = !(showAssessmentResultLinks || showAssessmentLinks || assessmentRequestsLinks);
|
||||
const shouldShowButton = !(showAssessmentResultLinks || showAssessmentLinks || assessmentRequestsLinks || showVerifyingAssessmentLinks );
|
||||
|
||||
return (
|
||||
<header className="fixed top-0 left-0 w-full h-16 bg-white z-50 border">
|
||||
|
|
@ -76,8 +77,8 @@ export default function AppHeader({ toggle, toggleLeftSidebar }: Props) {
|
|||
</Button>
|
||||
)}
|
||||
|
||||
{showAssessmentLinks && (
|
||||
<TbMenu2 onClick={toggleLeftSidebar} className="md:ml-0 ml-6 mt-8 w-6 h-fit pb-4 mb-4 cursor-pointer" />
|
||||
{(showAssessmentLinks || showVerifyingAssessmentLinks) && (
|
||||
<TbMenu2 onClick={toggleLeftSidebar} className="md:ml-0 ml-6 mt-8 w-6 h-fit pb-4 mb-4 cursor-pointer lg:hidden" />
|
||||
)}
|
||||
|
||||
<img
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user