aboutsummaryrefslogtreecommitdiff
path: root/src/components/moments/Moment.tsx
diff options
context:
space:
mode:
authorShravya Ramesh <37447613+shravyaramesh@users.noreply.github.com>2020-11-11 11:13:48 -0800
committerGitHub <noreply@github.com>2020-11-11 14:13:48 -0500
commit9b4ba92df514ca8c5c92c4f9279144e2c9d49e36 (patch)
treec6dc43da991810416dfd84d93a9b60065ecc859c /src/components/moments/Moment.tsx
parent321c1f9fc883b0f0accff614f0a995fd41c960fe (diff)
[TMA-383] Added report button moment (#114)
* Added button on individual moment page to report an issue * Report issue button disappears when clicked on and reappears when alert is closed * Small change * Moved sendReport() to a ReportingService * following user's report button now appears * Update ReportingService.ts Added alert * Added back report button * moved button back to the bottom * Small change Co-authored-by: Ashm Walia <ashmwalia@outlook.com> Co-authored-by: Husam Salhab <47015061+hsalhab@users.noreply.github.com>
Diffstat (limited to 'src/components/moments/Moment.tsx')
-rw-r--r--src/components/moments/Moment.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/moments/Moment.tsx b/src/components/moments/Moment.tsx
index 1ec5511e..f905bfe3 100644
--- a/src/components/moments/Moment.tsx
+++ b/src/components/moments/Moment.tsx
@@ -61,7 +61,11 @@ const Moment: React.FC<MomentProps> = ({title, images, isProfileView}) => {
style={styles.scrollContainer}>
{images &&
images.map((imageObj: MomentType) => (
- <MomentTile key={imageObj.moment_id} moment={imageObj} />
+ <MomentTile
+ key={imageObj.moment_id}
+ moment={imageObj}
+ isProfileView={isProfileView}
+ />
))}
{(images === undefined || images.length === 0) && !isProfileView && (
<TouchableOpacity onPress={() => navigateToImagePicker()}>