From d955c6bc31be3b2e3e289a8dec8b5970251d4090 Mon Sep 17 00:00:00 2001 From: Husam Salhab <47015061+hsalhab@users.noreply.github.com> Date: Thu, 7 Jan 2021 15:05:50 -0500 Subject: changes here and there (#171) --- src/components/comments/CommentTile.tsx | 2 +- src/screens/profile/IndividualMoment.tsx | 2 +- src/types/types.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 = ({ comment_object, screenType, }) => { - const timePosted = getTimePosted(comment_object.date_time); + const timePosted = getTimePosted(comment_object.date_created); return ( = ({ momentId={item.moment_id} caption={item.caption} pathHash={item.path_hash} - dateTime={item.date_time} + dateTime={item.date_created} screenType={screenType} /> 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; } -- cgit v1.2.3-70-g09d2