From 09673fd8a913cd99ae225c1dfd0ef17e02ae04b8 Mon Sep 17 00:00:00 2001 From: seaznCode Date: Sun, 30 Nov 2025 13:31:43 +0100 Subject: [PATCH] refactor: update personal and company user type handling in BasicInformation component --- .../profile/components/basicInformation.tsx | 47 ++++++++++++------- 1 file changed, 31 insertions(+), 16 deletions(-) diff --git a/src/app/profile/components/basicInformation.tsx b/src/app/profile/components/basicInformation.tsx index e406d02..fc8c98c 100644 --- a/src/app/profile/components/basicInformation.tsx +++ b/src/app/profile/components/basicInformation.tsx @@ -19,30 +19,45 @@ export default function BasicInformation({ profileData, HighlightIfMissing, onEd
-
+ {profileData.userType === 'personal' && ( +
+
+ +
+ + + {profileData.firstName} + +
+
+
+ +
+ + + {profileData.lastName} + +
+
+
+ )} + {profileData.userType === 'company' && (
- - {profileData.firstName} + + {profileData.contactPersonName}
-
- -
- - - {profileData.lastName} - -
-
-
+ )}