From 494677881ac50438af19009b5996cb8548026d61 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Fri, 21 May 2021 19:33:48 -0400 Subject: Add MomentTagType, Add logic to fetch tags for each moment --- src/screens/profile/IndividualMoment.tsx | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/screens') 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 = ({ ); 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}) => (