From 18c058d1329093428e2f6d5c1b742174da6f847d Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Tue, 28 Aug 2018 11:14:38 +0500 Subject: Change of date headings --- src/components/group-heading/index.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/components') diff --git a/src/components/group-heading/index.js b/src/components/group-heading/index.js index 2ba89a2..cca5c03 100644 --- a/src/components/group-heading/index.js +++ b/src/components/group-heading/index.js @@ -25,6 +25,10 @@ class GroupHeading extends React.Component { const formattedDate = startMoment.fromNow(); if (formattedDate === 'a year ago') { return 'Last Year'; + } else if (formattedDate === 'a month ago') { + return 'This Month'; + } else if (formattedDate === '6 days ago') { + return 'This Week'; } return formattedDate; -- cgit v1.3