diff options
author | Shravya Ramesh <shravs1208@gmail.com> | 2021-05-25 15:37:34 -0700 |
---|---|---|
committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-05-25 15:37:34 -0700 |
commit | b0b5f7aefb58aad74c4f75d521c7416d393e43f4 (patch) | |
tree | 314ac9dd68d9a99dac7083e4d224921af8ae5b46 | |
parent | 534a90b35f3b6694cac2b99989b5f4777d2bdb19 (diff) |
Fix lint error, Make function async
-rw-r--r-- | src/components/moments/MomentPostHeader.tsx | 2 | ||||
-rw-r--r-- | src/components/profile/MomentMoreInfoDrawer.tsx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/components/moments/MomentPostHeader.tsx b/src/components/moments/MomentPostHeader.tsx index ae9e96a0..dc6a3cd9 100644 --- a/src/components/moments/MomentPostHeader.tsx +++ b/src/components/moments/MomentPostHeader.tsx @@ -1,5 +1,5 @@ import {useNavigation} from '@react-navigation/native'; -import React, {useEffect, useState} from 'react'; +import React, {useState} from 'react'; import { StyleSheet, Text, diff --git a/src/components/profile/MomentMoreInfoDrawer.tsx b/src/components/profile/MomentMoreInfoDrawer.tsx index 1ac05fb0..3f8707e8 100644 --- a/src/components/profile/MomentMoreInfoDrawer.tsx +++ b/src/components/profile/MomentMoreInfoDrawer.tsx @@ -58,7 +58,7 @@ const MomentMoreInfoDrawer: React.FC<MomentMoreInfoDrawerProps> = (props) => { }); }; - const handleRemoveTag = () => { + const handleRemoveTag = async () => { setIsOpen(false); setTimeout(() => { Alert.alert( |