Non-structure locations are marked as approximated

This commit is contained in:
Franc Camps-Febrer
2019-01-31 18:37:23 -05:00
parent 4e000c8137
commit 8147af2620
4 changed files with 7 additions and 5 deletions

View File

@@ -3,13 +3,13 @@ import React from 'react'
import copy from '../../../js/data/copy.json'
import { isNotNullNorUndefined } from '../../../js/utilities'
const CardLocation = ({ language, location }) => {
const CardLocation = ({ language, location, isPrecise }) => {
if (isNotNullNorUndefined(location)) {
return (
<div className='card-cell location'>
<p>
<i className='material-icons left'>location_on</i>
{location}
{`${location}${(isPrecise) ? '' : ' (Approximated)'}`}
</p>
</div>
)