From 54fd0888d5772e93bfdfc06df9c80925289710cf Mon Sep 17 00:00:00 2001 From: Guilherme Baufaker Date: Sat, 13 Apr 2024 18:39:26 -0300 Subject: [PATCH] fixes in users table, orders table, association admin menu item, and others --- components/header/Drawers.tsx | 12 +++--- components/ui/AssociationAdmin.tsx | 25 +++++++++-- components/ui/EcannaCardPage.tsx | 36 ++++++++++++++-- components/ui/MyInfo.tsx | 2 +- components/ui/MyOrders.tsx | 67 ++++++++++++++++++++++++++---- components/ui/OrderStatus.tsx | 2 +- 6 files changed, 120 insertions(+), 24 deletions(-) diff --git a/components/header/Drawers.tsx b/components/header/Drawers.tsx index d3cf4fc..fae3021 100644 --- a/components/header/Drawers.tsx +++ b/components/header/Drawers.tsx @@ -71,11 +71,13 @@ function Drawers({ menu, searchbar, children, platform }: Props) { if (localStorage.getItem("AccessToken") == "") { menu.items = menu.publicItems || []; } else if (localStorage.getItem("AssociationAdmin")) { - menu.items[menu.items.length] = { - "@type": "SiteNavigationElement", - name: "Admin Associação", - url: "/admin/associacao", - }; + if (!menu.items.find((i) => i.name === "Admin Associação")) { + menu.items[menu.items.length] = { + "@type": "SiteNavigationElement", + name: "Admin Associação", + url: "/admin/associacao", + }; + } } return ( diff --git a/components/ui/AssociationAdmin.tsx b/components/ui/AssociationAdmin.tsx index 9700b4b..8aafed4 100644 --- a/components/ui/AssociationAdmin.tsx +++ b/components/ui/AssociationAdmin.tsx @@ -205,13 +205,30 @@ function MyAccount() { Pacientes da Associação
+
+
+ Nome +
+
+ Email +
+
+ CPF +
+