diff --git a/src/components/EditProfileModal.js b/src/components/EditProfileModal.js
index 673d2fb..48220cd 100644
--- a/src/components/EditProfileModal.js
+++ b/src/components/EditProfileModal.js
@@ -167,6 +167,7 @@ const EditProfileModal = ({
card_number: initialData.card_number ? initialData.card_number.toString() : '',
});
setErrors({});
+ Keyboard.dismiss(); // Dismiss keyboard when modal closes
onClose();
};
@@ -256,164 +257,168 @@ const EditProfileModal = ({
behavior={Platform.OS === 'ios' ? 'padding' : undefined}
style={{ flex: 1 }}
>
-
-
- {/* Header */}
-
-
-
-
- Şahsy maglumatlar
-
-
-
- {/* Form */}
-
-
- Esasy maglumatlar
-
- updateFormData('name', value)}
- error={errors.name}
- maxLength={255}
- returnKeyType="next"
- onSubmitEditing={() => phoneInputRef.current?.focus()}
- />
-
- updateFormData('phone', value)}
- error={errors.phone}
- keyboardType="numeric"
- maxLength={8}
- returnKeyType="next"
- onSubmitEditing={() => passwordInputRef.current?.focus()}
- />
-
- updateFormData('password', value)}
- error={errors.password}
- secureTextEntry
- placeholder="Parol üýtgetmezlik üçin boş goýuň"
- returnKeyType="next"
- onSubmitEditing={() => passportIdInputRef.current?.focus()}
- />
-
-
-
- Passport maglumatlary
-
-
- Passport seriýasy
- setShowPassportPicker(true)}
- >
-
- {formData.passport_serie || 'Saýlaň'}
-
-
-
- {errors.passport_serie && (
- {errors.passport_serie}
- )}
-
-
- updateFormData('passport_id', value)}
- error={errors.passport_id}
- keyboardType="numeric"
- returnKeyType="next"
- onSubmitEditing={() => cardNameInputRef.current?.focus()}
- />
-
-
-
- Kart maglumatlary
-
- updateFormData('card_name', value)}
- error={errors.card_name}
- maxLength={255}
- returnKeyType="next"
- onSubmitEditing={() => cardNumberInputRef.current?.focus()}
- />
-
- updateFormData('card_number', value)}
- error={errors.card_number}
- keyboardType="numeric"
- maxLength={16}
- returnKeyType="next"
- onSubmitEditing={() => cardMonthInputRef.current?.focus()}
- />
-
- updateFormData('card_month', value)}
- error={errors.card_month}
- keyboardType="numeric"
- maxLength={2}
- returnKeyType="next"
- onSubmitEditing={() => cardYearInputRef.current?.focus()}
- />
-
- updateFormData('card_year', value)}
- error={errors.card_year}
- keyboardType="numeric"
- maxLength={4}
- returnKeyType="done"
- />
-
-
-
-
-
- * belgisi bolan meýdanlar hökmany doldurulmaly
-
-
-
-
- {/* Save Button */}
-
-
- {isLoading && (
-
- )}
-
+
+ {/* Header */}
+
+
+
+
+ Şahsy maglumatlar
+
-
+
+ {/* Form */}
+
+
+ Esasy maglumatlar
+
+ updateFormData('name', value)}
+ error={errors.name}
+ maxLength={255}
+ returnKeyType="next"
+ onSubmitEditing={() => phoneInputRef.current?.focus()}
+ />
+
+ updateFormData('phone', value)}
+ error={errors.phone}
+ keyboardType="numeric"
+ maxLength={8}
+ returnKeyType="next"
+ onSubmitEditing={() => passwordInputRef.current?.focus()}
+ />
+
+ updateFormData('password', value)}
+ error={errors.password}
+ secureTextEntry
+ placeholder="Parol üýtgetmezlik üçin boş goýuň"
+ returnKeyType="next"
+ onSubmitEditing={() => passportIdInputRef.current?.focus()}
+ />
+
+
+
+ Passport maglumatlary
+
+
+ Passport seriýasy
+ setShowPassportPicker(true)}
+ >
+
+ {formData.passport_serie || 'Saýlaň'}
+
+
+
+ {errors.passport_serie && (
+ {errors.passport_serie}
+ )}
+
+
+ updateFormData('passport_id', value)}
+ error={errors.passport_id}
+ keyboardType="numeric"
+ returnKeyType="next"
+ onSubmitEditing={() => cardNameInputRef.current?.focus()}
+ />
+
+
+
+ Kart maglumatlary
+
+ updateFormData('card_name', value)}
+ error={errors.card_name}
+ maxLength={255}
+ returnKeyType="next"
+ onSubmitEditing={() => cardNumberInputRef.current?.focus()}
+ />
+
+ updateFormData('card_number', value)}
+ error={errors.card_number}
+ keyboardType="numeric"
+ maxLength={16}
+ returnKeyType="next"
+ onSubmitEditing={() => cardMonthInputRef.current?.focus()}
+ />
+
+ updateFormData('card_month', value)}
+ error={errors.card_month}
+ keyboardType="numeric"
+ maxLength={2}
+ returnKeyType="next"
+ onSubmitEditing={() => cardYearInputRef.current?.focus()}
+ />
+
+ updateFormData('card_year', value)}
+ error={errors.card_year}
+ keyboardType="numeric"
+ maxLength={4}
+ returnKeyType="done"
+ />
+
+
+
+
+
+ * belgisi bolan meýdanlar hökmany doldurulmaly
+
+
+
+
+ {/* Save Button */}
+
+
+ {isLoading && (
+
+ )}
+
+
{renderPassportSeriesPicker()}
diff --git a/src/screens/Card/CardOrdersScreen.js b/src/screens/Card/CardOrdersScreen.js
index 2f89c02..02f9979 100644
--- a/src/screens/Card/CardOrdersScreen.js
+++ b/src/screens/Card/CardOrdersScreen.js
@@ -7,8 +7,8 @@ import apiService from '../../services/apiService';
import { COLORS } from '../../constants/colors';
import { useBaseEnums } from '../../contexts/BaseEnumsContext';
-const CARD_BG = '#EFF6FF';
-const CIRCLE_BG = '#7FB3FF';
+const CARD_BG = '#F1F9F1';
+const CIRCLE_BG = '#A2E4A4';
const CardOrdersScreen = () => {
const navigation = useNavigation();