aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHusam Salhab <47015061+hsalhab@users.noreply.github.com>2021-01-07 15:05:50 -0500
committerGitHub <noreply@github.com>2021-01-07 15:05:50 -0500
commitd955c6bc31be3b2e3e289a8dec8b5970251d4090 (patch)
tree29115267cb465067125518ebe7246df041083586 /src
parent0fe59c08cca546bdb5b4ec178ea0c7a250380de6 (diff)
changes here and there (#171)
Diffstat (limited to 'src')
-rw-r--r--src/components/comments/CommentTile.tsx2
-rw-r--r--src/screens/profile/IndividualMoment.tsx2
-rw-r--r--src/types/types.ts4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/components/comments/CommentTile.tsx b/src/components/comments/CommentTile.tsx
index f286ba52..47f25a53 100644
--- a/src/components/comments/CommentTile.tsx
+++ b/src/components/comments/CommentTile.tsx
@@ -19,7 +19,7 @@ const CommentTile: React.FC<CommentTileProps> = ({
comment_object,
screenType,
}) => {
- const timePosted = getTimePosted(comment_object.date_time);
+ const timePosted = getTimePosted(comment_object.date_created);
return (
<View style={styles.container}>
<ProfilePreview
diff --git a/src/screens/profile/IndividualMoment.tsx b/src/screens/profile/IndividualMoment.tsx
index 91742324..f13e1295 100644
--- a/src/screens/profile/IndividualMoment.tsx
+++ b/src/screens/profile/IndividualMoment.tsx
@@ -71,7 +71,7 @@ const IndividualMoment: React.FC<IndividualMomentProps> = ({
momentId={item.moment_id}
caption={item.caption}
pathHash={item.path_hash}
- dateTime={item.date_time}
+ dateTime={item.date_created}
screenType={screenType}
/>
</View>
diff --git a/src/types/types.ts b/src/types/types.ts
index d3ecc908..b3148bc4 100644
--- a/src/types/types.ts
+++ b/src/types/types.ts
@@ -76,7 +76,7 @@ export interface LinkerType {
export interface MomentType {
moment_id: string;
caption: string;
- date_time: string;
+ date_created: string;
moment_category: string;
path_hash: string;
}
@@ -84,7 +84,7 @@ export interface MomentType {
export interface CommentType {
comment_id: string;
comment: string;
- date_time: string;
+ date_created: string;
moment_id: string;
commenter: ProfilePreviewType;
}