mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 21:38:35 +03:00
unintentional timestamp precision show up normally
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,6 +3,7 @@ build/
|
||||
node_modules/
|
||||
config.js
|
||||
dev.config.js
|
||||
tags
|
||||
|
||||
src/\.DS_Store
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ class Card extends React.Component {
|
||||
<CardLocation
|
||||
language={this.props.language}
|
||||
location={this.props.event.location}
|
||||
isPrecise={(this.props.event.type === 'Structure')}
|
||||
isPrecise={(!this.props.event.type || this.props.event.type === 'Structure')}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -8,12 +8,13 @@ const CardTimestamp = ({ timelabel, language, precision }) => {
|
||||
// const estimatedLang = copy[language].cardstack.estimated
|
||||
const unknownLang = copy[language].cardstack.unknown_time
|
||||
|
||||
console.log(precision)
|
||||
if (isNotNullNorUndefined(timelabel)) {
|
||||
return (
|
||||
<div className='card-cell timestamp'>
|
||||
<p>
|
||||
<i className='material-icons left'>today</i>
|
||||
{timelabel}{(precision !== '') ? ` - ${precision}` : ''}
|
||||
{timelabel}{(precision && precision !== '') ? ` - ${precision}` : ''}
|
||||
</p>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user