From a8a28af7f6be134e08c8d23b7a82080b61eda248 Mon Sep 17 00:00:00 2001 From: Pedro Sanders Date: Fri, 24 Nov 2023 12:03:45 -0500 Subject: [PATCH] refactor: move customer info and order history to the side --- .../components/chat/customer/CustomerInfo.tsx | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/mods/frontoffice/src/components/chat/customer/CustomerInfo.tsx b/mods/frontoffice/src/components/chat/customer/CustomerInfo.tsx index d57d054..245b217 100644 --- a/mods/frontoffice/src/components/chat/customer/CustomerInfo.tsx +++ b/mods/frontoffice/src/components/chat/customer/CustomerInfo.tsx @@ -76,20 +76,26 @@ export const CustomerInfo: React.FC = ({ {!showOrders ? ( <> - - Birthday {profile.birthday} - + {profile.birthday && ( + + Birthday {profile.birthday} + + )} {profile.name} {profile.email} -
- {profile.phone} + {profile.phone && ( + <> +
+ {profile.phone} + + )}
{profile.note}