mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-07-23 20:21:49 +00:00
Display images, notes, sources for events as collapsible tabs (#158)
This commit is contained in:
@@ -27,7 +27,9 @@ function formatDate(date: TopolaDate, intl: IntlShape) {
|
||||
formatOptions,
|
||||
).format(dateObject);
|
||||
|
||||
return [translatedQualifier, translatedDate].join(' ');
|
||||
return [translatedQualifier, translatedDate]
|
||||
.filter((dateElement) => dateElement)
|
||||
.join(' ');
|
||||
}
|
||||
|
||||
function formatDateRage(dateRange: DateRange, intl: IntlShape) {
|
||||
|
||||
Reference in New Issue
Block a user