diff --git a/src/components/Organizations.tsx b/src/components/Organizations.tsx index ceb116ab3..f536eec47 100644 --- a/src/components/Organizations.tsx +++ b/src/components/Organizations.tsx @@ -79,63 +79,67 @@ function ActionButtons({
{checkStatus == 'active' ? ( <> -
{ - setData(getData?.getOrganizations[props.row.index]); - console.log(getData?.getOrganizations[props.row.index]) - removeInviteModel(); - }} - > - -
-
{ - setData(getData?.getOrganizations[props.row.index]); - removeDeleteModel(); - }} - > - -
+
{ + setData(getData?.getOrganizations[props.row.index]); + console.log(getData?.getOrganizations[props.row.index]) + removeInviteModel(); + }} + > + +
+
{ + setData(getData?.getOrganizations[props.row.index]); + removeDeleteModel(); + }} + > + +
) : ( - <> - - - + <> +
{ + setData(getData?.getOrganizations[props.row.index]); + approveModel(); + }} + > + +
+
{ + setData(getData?.getOrganizations[props.row.index]); + rejectModel(); + }} + > + +
+ )}
);