mirror of
https://github.com/zhigang1992/uber-cities.git
synced 2026-04-24 04:55:33 +08:00
add what matches
This commit is contained in:
@@ -71,3 +71,11 @@ export const GoBack = styled(Link)`
|
||||
position: absolute;
|
||||
bottom: 20px;
|
||||
`
|
||||
|
||||
export const CityName = styled.address`
|
||||
display: block;
|
||||
font-size: 16px;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
`
|
||||
|
||||
@@ -8,7 +8,8 @@ import {
|
||||
Flex,
|
||||
Company,
|
||||
GoBack,
|
||||
Message
|
||||
Message,
|
||||
CityName
|
||||
} from './_city.elements'
|
||||
import edgeCases from '../utils/edgeCases'
|
||||
import ReactCountryFlag from 'react-country-flag'
|
||||
@@ -42,10 +43,11 @@ const City = ({ pageContext: { city } }) => {
|
||||
YES{' '}
|
||||
<span role="img" aria-label="car">
|
||||
🚗
|
||||
</span>{' '}
|
||||
{city.info.countr ? (
|
||||
</span>
|
||||
{city.info.country ? (
|
||||
<ReactCountryFlag code={city.info.country.short_name} />
|
||||
) : null}
|
||||
<CityName>Matches {city.info.formatted_address}</CityName>{' '}
|
||||
</Title>
|
||||
</a>
|
||||
<Message>{edgeCases(city)}</Message>
|
||||
|
||||
Reference in New Issue
Block a user