chore: push current project state to new repository
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
32049d90bd
commit
dd672f39f5
@@ -182,12 +182,7 @@ const ProfileTab: React.FC = () => {
|
||||
const [showDialog, setShowDialog] = useState<boolean>(false);
|
||||
const [isNavigating, setIsNavigating] = useState<boolean>(false);
|
||||
|
||||
// Check if user is auction type
|
||||
const isAuctionUser = user?.userType?.toLowerCase() === 'auction';
|
||||
|
||||
// Get display data based on user type
|
||||
const displayName = isAuctionUser ? user?.fullName : data?.fullName;
|
||||
const displayMobile = isAuctionUser ? user?.mobileNo : data?.mobileNo;
|
||||
|
||||
const handleAadhaarPress = () => {
|
||||
if (user?.esetuVerified === 'Not Verified' || user?.esetuVerified === null) {
|
||||
@@ -210,7 +205,7 @@ const ProfileTab: React.FC = () => {
|
||||
udf2: "77.34",
|
||||
udf3: "string",
|
||||
udf4: "string",
|
||||
responseUrl: "http://dev.192.168.6.194:8090/"
|
||||
// responseUrl: "http://dev.192.168.6.194:8090/"
|
||||
};
|
||||
|
||||
const res = await eSetuAdharVarification(payload);
|
||||
@@ -264,7 +259,7 @@ const ProfileTab: React.FC = () => {
|
||||
showsVerticalScrollIndicator={false}
|
||||
>
|
||||
{/* Header with Gradient */}
|
||||
<ProfileHeader data={data} displayName={displayName || data.fullName} />
|
||||
<ProfileHeader data={data} displayName={data?.fullName} />
|
||||
|
||||
{/* Quick Stats */}
|
||||
<QuickStats data={data} onAadhaarPress={handleAadhaarPress} />
|
||||
@@ -274,18 +269,18 @@ const ProfileTab: React.FC = () => {
|
||||
title="Personal Information"
|
||||
IconComponent={UserCircle}
|
||||
delay={0}
|
||||
showEdit={!isAuctionUser}
|
||||
showEdit={true}
|
||||
onEdit={() => setEditModalVisible(true)}
|
||||
>
|
||||
<InfoRow
|
||||
label="Full Name"
|
||||
value={isAuctionUser ? displayName : `${data.firstName} ${data.middleName} ${data.lastName}`.trim()}
|
||||
value={`${data.firstName} ${data.middleName} ${data.lastName}`.trim()}
|
||||
IconComponent={User}
|
||||
/>
|
||||
<InfoRow label="Email" value={data.emailId} IconComponent={Mail} />
|
||||
<InfoRow
|
||||
label="Mobile"
|
||||
value={isAuctionUser ? displayMobile : `${data.dialCode} ${data.mobileNo}`}
|
||||
value={`${data.dialCode} ${data.mobileNo}`}
|
||||
IconComponent={Phone}
|
||||
/>
|
||||
<InfoRow label="Designation" value={data.designation} IconComponent={Briefcase} />
|
||||
@@ -363,15 +358,13 @@ const ProfileTab: React.FC = () => {
|
||||
<View style={{ height: 40 }} />
|
||||
</ScrollView>
|
||||
|
||||
{/* Edit Modal - Only for tender users */}
|
||||
{!isAuctionUser && (
|
||||
<EditProfileModal
|
||||
visible={editModalVisible}
|
||||
onClose={() => setEditModalVisible(false)}
|
||||
data={data}
|
||||
onSuccess={refetch}
|
||||
/>
|
||||
)}
|
||||
{/* Edit Modal */}
|
||||
<EditProfileModal
|
||||
visible={editModalVisible}
|
||||
onClose={() => setEditModalVisible(false)}
|
||||
data={data}
|
||||
onSuccess={refetch}
|
||||
/>
|
||||
|
||||
{/* Aadhaar Verification Dialog */}
|
||||
<ConfirmDialog
|
||||
|
||||
Reference in New Issue
Block a user