aboutsummaryrefslogtreecommitdiff
path: root/src/screens
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-06-08 14:20:57 -0400
committerIvan Chen <ivan@tagg.id>2021-06-08 16:18:34 -0400
commitf8dd6b8ef033039278e2931876488c307f5d5adc (patch)
tree3303e77f4a8991b8ff9c95b638849efa23b32b7b /src/screens
parent96a80c53fcc0b5815b56f0ed0b48d152a6c6e2a4 (diff)
Create MomentPostType
Diffstat (limited to 'src/screens')
-rw-r--r--src/screens/profile/IndividualMoment.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/screens/profile/IndividualMoment.tsx b/src/screens/profile/IndividualMoment.tsx
index 95428c39..ba6a731c 100644
--- a/src/screens/profile/IndividualMoment.tsx
+++ b/src/screens/profile/IndividualMoment.tsx
@@ -7,7 +7,7 @@ import {useSelector} from 'react-redux';
import {IndividualMomentTitleBar, MomentPost} from '../../components';
import {MainStackParams} from '../../routes';
import {RootState} from '../../store/rootreducer';
-import {MomentType} from '../../types';
+import {MomentPostType, MomentType} from '../../types';
import {normalize, StatusBarHeight} from '../../utils';
/**
@@ -52,8 +52,8 @@ const IndividualMoment: React.FC<IndividualMomentProps> = ({
/>
<FlatList
data={momentData}
- renderItem={({item}: {item: MomentType}) => (
- <MomentPost userXId={userXId} screenType={screenType} item={item} />
+ renderItem={({item}: {item: MomentPostType}) => (
+ <MomentPost moment={item} userXId={userXId} screenType={screenType} />
)}
keyExtractor={(_, index) => index.toString()}
showsVerticalScrollIndicator={false}