delete action
This commit is contained in:
@@ -268,7 +268,7 @@ const EditProfileModal = ({
|
|||||||
</View>
|
</View>
|
||||||
|
|
||||||
{/* Form */}
|
{/* Form */}
|
||||||
<ScrollView style={styles.form} showsVerticalScrollIndicator={false}>
|
<ScrollView style={styles.form} showsVerticalScrollIndicator={false} keyboardShouldPersistTaps="handled" contentContainerStyle={{paddingBottom:80}}>
|
||||||
<View style={styles.formSection}>
|
<View style={styles.formSection}>
|
||||||
<Text style={styles.sectionTitle}>Esasy maglumatlar</Text>
|
<Text style={styles.sectionTitle}>Esasy maglumatlar</Text>
|
||||||
|
|
||||||
@@ -451,7 +451,6 @@ const styles = StyleSheet.create({
|
|||||||
width: 32,
|
width: 32,
|
||||||
},
|
},
|
||||||
form: {
|
form: {
|
||||||
flex: 1,
|
|
||||||
paddingHorizontal: 20,
|
paddingHorizontal: 20,
|
||||||
},
|
},
|
||||||
formSection: {
|
formSection: {
|
||||||
|
|||||||
@@ -587,6 +587,14 @@ class AuthService {
|
|||||||
async deleteCardOrder(orderId) {
|
async deleteCardOrder(orderId) {
|
||||||
return this.makeRequest(`/card-order/${orderId}`, null, true, 'DELETE');
|
return this.makeRequest(`/card-order/${orderId}`, null, true, 'DELETE');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ================================
|
||||||
|
// Account deletion
|
||||||
|
// ================================
|
||||||
|
|
||||||
|
async deleteUserAccount() {
|
||||||
|
return this.makeRequest('/auth/delete-user', null, true, 'POST');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default new AuthService();
|
export default new AuthService();
|
||||||
Reference in New Issue
Block a user