Skip to content

Commit

Permalink
Tab issue (#1674)
Browse files Browse the repository at this point in the history
* tab not showing issue fix

* removed console.log

* show tab issue fix for plan inbox

---------

Co-authored-by: rachana-egov <[email protected]>
  • Loading branch information
rachana-egov and rachana-egov authored Oct 25, 2024
1 parent 7f6e383 commit f4bcf18
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,14 @@ const PlanInbox = () => {
if (selectedFilter === "PENDING_FOR_VALIDATION") {
setActiveLink({ code: "", name: "" });
setShowTab(false);
} else {
if (!showTab) {
setShowTab(true);
setActiveLink({
code: "ASSIGNED_TO_ME",
name: "ASSIGNED_TO_ME"
});
}
}
}, [selectedFilter]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,19 @@ const PopInbox = () => {
if (selectedFilter === "PENDING_FOR_VALIDATION") {
setActiveLink({ code: "", name: "" });
setShowTab(false);
} else {
if (!showTab) {
setShowTab(true);
setActiveLink({
code: "ASSIGNED_TO_ME",
name: "ASSIGNED_TO_ME"
});
}
}
}, [selectedFilter]);



const onFilter = (selectedStatus) => {
setSelectedFilter(selectedStatus?.code);
};
Expand Down

0 comments on commit f4bcf18

Please sign in to comment.