From cc655fed6c1777efdbe7530fcbcd8c1ec403b81e Mon Sep 17 00:00:00 2001 From: Joao Ramos Date: Sat, 23 Dec 2023 14:51:28 +0000 Subject: [PATCH 1/2] Added flag display for agents --- src/pages/profile.tsx | 48 +++++++++++++++++++++++++++---------------- 1 file changed, 30 insertions(+), 18 deletions(-) diff --git a/src/pages/profile.tsx b/src/pages/profile.tsx index 53a565aa..b632ee46 100644 --- a/src/pages/profile.tsx +++ b/src/pages/profile.tsx @@ -159,6 +159,7 @@ export default function Home() { setIsLoading(false); }; + debugger; return ( <> @@ -361,26 +362,37 @@ export default function Home() { -
(profilePictureInput.current as any)?.click()}> -
-
- +
+
(profilePictureInput.current as any)?.click()}> +
+
+ +
+ {user.name}
- {user.name} + + (profilePictureInput.current as any)?.click()} + className="cursor-pointer text-mti-purple-light text-sm"> + Change picture + +
{USER_TYPE_LABELS[user.type]}
- - (profilePictureInput.current as any)?.click()} - className="cursor-pointer text-mti-purple-light text-sm"> - Change picture - -
{USER_TYPE_LABELS[user.type]}
+ {user.type === 'agent' && ( +
+ {user.demographicInformation?.country.toLowerCase() +
+ )}
From 938a5e9c7cb65c671c90c91dfc383551904af499 Mon Sep 17 00:00:00 2001 From: Joao Ramos Date: Sat, 23 Dec 2023 14:52:56 +0000 Subject: [PATCH 2/2] Removed debugger --- src/pages/profile.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/profile.tsx b/src/pages/profile.tsx index b632ee46..3d142ed4 100644 --- a/src/pages/profile.tsx +++ b/src/pages/profile.tsx @@ -159,7 +159,6 @@ export default function Home() { setIsLoading(false); }; - debugger; return ( <>