aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/screens/profile/EditProfile.tsx19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/screens/profile/EditProfile.tsx b/src/screens/profile/EditProfile.tsx
index 22c83985..50e1c006 100644
--- a/src/screens/profile/EditProfile.tsx
+++ b/src/screens/profile/EditProfile.tsx
@@ -59,7 +59,7 @@ const EditProfile: React.FC<EditProfileProps> = ({route, navigation}) => {
const y: Animated.Value<number> = Animated.useValue(0);
const {userId, username} = route.params;
const {
- profile: {website, biography, birthday, gender, snapchat, tiktok},
+ profile: {website, biography, gender, snapchat, tiktok},
avatar,
cover,
} = useSelector((state: RootState) => state.user);
@@ -82,7 +82,6 @@ const EditProfile: React.FC<EditProfileProps> = ({route, navigation}) => {
smallPic: avatar ? avatar : '',
website: website ? website : '',
bio: biography ? biography : '',
- birthdate: birthday && moment(birthday).format('YYYY-MM-DD'),
gender: isCustomGender ? 'custom' : gender,
customGenderText: isCustomGender ? gender : '',
snapchat: snapchat,
@@ -220,12 +219,6 @@ const EditProfile: React.FC<EditProfileProps> = ({route, navigation}) => {
});
};
- const handleBirthdateUpdate = (birthdate: Date) => {
- setForm({
- ...form,
- birthdate: birthdate && moment(birthdate).format('YYYY-MM-DD'),
- });
- };
const handleSnapchatUpdate = (newUsername: string) => {
// Allow any username, empty means to "un-link" it
@@ -296,10 +289,6 @@ const EditProfile: React.FC<EditProfileProps> = ({route, navigation}) => {
}
}
- if (form.birthdate) {
- request.append('birthday', form.birthdate);
- }
-
if (isCustomGender) {
if (form.isValidGender) {
request.append('gender', form.customGenderText);
@@ -448,12 +437,6 @@ const EditProfile: React.FC<EditProfileProps> = ({route, navigation}) => {
width={280}
value={form.bio}
/>
- <BirthDatePicker
- handleBDUpdate={handleBirthdateUpdate}
- width={280}
- date={moment(form.birthdate).toDate()}
- showPresetdate={true}
- />
<TaggDropDown
value={form.gender}