aboutsummaryrefslogtreecommitdiff
path: root/src/screens
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-05-21 19:33:48 -0400
committerIvan Chen <ivan@tagg.id>2021-05-21 19:33:48 -0400
commit494677881ac50438af19009b5996cb8548026d61 (patch)
tree9494f17483021af4a0be05593f9c3301b3b58c18 /src/screens
parent1a298f4b0db4a2e598f62d0651dc36466c6508be (diff)
Add MomentTagType, Add logic to fetch tags for each moment
Diffstat (limited to 'src/screens')
-rw-r--r--src/screens/profile/IndividualMoment.tsx18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/screens/profile/IndividualMoment.tsx b/src/screens/profile/IndividualMoment.tsx
index 0c50a642..4baca5b2 100644
--- a/src/screens/profile/IndividualMoment.tsx
+++ b/src/screens/profile/IndividualMoment.tsx
@@ -57,24 +57,6 @@ const IndividualMoment: React.FC<IndividualMomentProps> = ({
);
const initialIndex = momentData.findIndex((m) => m.moment_id === moment_id);
- const loadMomentTags = async () => {
- try {
- const token = await AsyncStorage.getItem('token');
- const response = await fetch(MOMENT_TAGS_ENDPOINT + `/${moment_id}/`, {
- method: 'GET',
- headers: {
- Authorization: 'Token ' + token,
- },
- });
- const status = response.status;
- if (status === 201) {
- //create TaggDraggables with
- }
- } catch (error) {
- Alert.alert(ERROR_SOMETHING_WENT_WRONG_REFRESH);
- }
- };
-
const renderMomentPost = ({item}: {item: MomentType}) => (
<View style={styles.postContainer}>
<MomentPostHeader