aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/moments/Moment.tsx2
-rw-r--r--src/screens/moments/CameraScreen.tsx4
-rw-r--r--src/services/MomentService.ts8
3 files changed, 3 insertions, 11 deletions
diff --git a/src/components/moments/Moment.tsx b/src/components/moments/Moment.tsx
index 6850f154..1e1cadce 100644
--- a/src/components/moments/Moment.tsx
+++ b/src/components/moments/Moment.tsx
@@ -43,7 +43,6 @@ const Moment: React.FC<MomentProps> = ({
}) => {
const navigation = useNavigation();
- // TODO: remove this later, tmp solution for handling videos
const navigateToCaptionScreenForVideo = (uri: string) => {
navigation.navigate('CaptionScreen', {
screenType,
@@ -114,7 +113,6 @@ const Moment: React.FC<MomentProps> = ({
mediaType: 'video',
})
.then((vid) => {
- console.log(vid);
if (vid.path) {
navigateToCaptionScreenForVideo(vid.path);
}
diff --git a/src/screens/moments/CameraScreen.tsx b/src/screens/moments/CameraScreen.tsx
index d9278876..37b37264 100644
--- a/src/screens/moments/CameraScreen.tsx
+++ b/src/screens/moments/CameraScreen.tsx
@@ -72,7 +72,7 @@ const CameraScreen: React.FC<CameraScreenProps> = ({route, navigation}) => {
title,
media: {
uri,
- isVideo: false, // TODO: only support image for now
+ isVideo: false,
},
});
};
@@ -83,7 +83,7 @@ const CameraScreen: React.FC<CameraScreenProps> = ({route, navigation}) => {
title,
media: {
uri: capturedImage,
- isVideo: false, // TODO: only support image for now
+ isVideo: false,
},
});
};
diff --git a/src/services/MomentService.ts b/src/services/MomentService.ts
index 60e6be3f..0c93876a 100644
--- a/src/services/MomentService.ts
+++ b/src/services/MomentService.ts
@@ -26,7 +26,7 @@ export const postMoment = async (
request.append('image', {
uri: uri,
- name: 'moment.jpg', // we don't care about filename, anything works
+ name: 'moment.jpg',
type: 'image/jpg',
});
request.append('moment', category);
@@ -267,8 +267,6 @@ export const handleVideoUpload = async (
console.log('Invalid urlObj');
return false;
}
- //build formData for POST request
- // Could not get a forEach to work and could not assign directly, will look into cleaning this series of appends up later.
const form = new FormData();
form.append('key', urlObj.response_url.fields.key);
form.append(
@@ -299,7 +297,6 @@ export const handleVideoUpload = async (
body: form,
});
const status = response.status;
- // let data = await response.json();
if (status === 200 || status === 204) {
console.log('complete');
return true;
@@ -309,11 +306,8 @@ export const handleVideoUpload = async (
`Please make sure that the email / username entered is registered with us. You may contact our customer support at ${TAGG_CUSTOMER_SUPPORT}`,
);
} else {
- console.log('FFFFFF \n');
- console.log(response);
console.log(ERROR_SOMETHING_WENT_WRONG_REFRESH);
}
- console.log(response);
}
} catch (error) {
console.log(error);