From d1e3e76c54b13ee670bb469e4870993c16db6765 Mon Sep 17 00:00:00 2001 From: Nshuti Parfait Date: Wed, 11 Oct 2023 22:14:48 +0300 Subject: [PATCH] fix: Replace buttons with icons on organizations page (#318) - Change action buttons to specific icons - Change icon colors to our platform color codes --- src/components/Organizations.tsx | 114 ++++++++++++++++--------------- 1 file changed, 59 insertions(+), 55 deletions(-) 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(); + }} + > + +
+ )}
);