bug fixed

This commit was merged in pull request #801.
This commit is contained in:
victorAnumudu
2024-09-27 18:23:32 +01:00
parent 6815eea66c
commit 7f631190dc
2 changed files with 29 additions and 43 deletions
+4 -4
View File
@@ -73,26 +73,26 @@ export default function FamilyTableNew() {
// Object that maps tab names to their corresponding components
const tabComponents = {
Tasks: (
tasks: (
<FamilyTasks
familyData={familyTasks}
action={familyAssignPopUpHandler}
/>
),
Waiting: (
waiting: (
<FamilyWaitlist
familyData={familyWaitList}
setUpdatePage={setUpdatePage}
/>
),
Pending: (
pending: (
<FamilyPending
familyData={familyPending}
/>
),
};
const defaultTabComponent = tabComponents.Tasks;
const defaultTabComponent = tabComponents.tasks;
// Selected tab component based on the current 'tab'
const selectedTabComponent = tabComponents[tab] || defaultTabComponent;