@financial-times/community-event-teaser
Advanced tools
Comparing version 5.0.0-beta.1 to 5.0.0-beta.2
@@ -29,2 +29,14 @@ 'use strict'; | ||
} | ||
else if (inProgress && daysAway === -1) { | ||
dateString = | ||
"Started yesterday at " + | ||
ftDateFormat__default['default'].format(scheduledStartTime, "HH:mm"); | ||
} | ||
else if (inProgress && daysAway > -7) { | ||
dateString = | ||
"Started on " + ftDateFormat__default['default'].format(scheduledStartTime, "EEEE"); | ||
} | ||
else if (inProgress) { | ||
dateString = "Started on " + formatEventDate(scheduledStartTime); | ||
} | ||
else if (daysAway === 0) { | ||
@@ -31,0 +43,0 @@ dateString = "Today at " + ftDateFormat__default['default'].format(scheduledStartTime, "HH:mm"); |
{ | ||
"name": "@financial-times/community-event-teaser", | ||
"version": "5.0.0-beta.1", | ||
"version": "5.0.0-beta.2", | ||
"description": "UI for community events", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1564417
40217