Skip to content

Instantly share code, notes, and snippets.

@thianlopezz
Created March 17, 2020 23:54
Show Gist options
  • Save thianlopezz/bdb39fa56da20d2a1cfd48f290b068c2 to your computer and use it in GitHub Desktop.
Save thianlopezz/bdb39fa56da20d2a1cfd48f290b068c2 to your computer and use it in GitHub Desktop.
import React from 'react';
import { Container, Grid } from '@material-ui/core';
import InffectedCountryCard from './InffectedCountryCard';
export default function InffectedCountryList({ inffectedCountries, updatedAt }) {
return (
<Container>
<h1 style={{ marginBottom: '0' }}>Paises infectados</h1>
<p style={{ color: '#0e5077', marginTop: '0' }}>actualizado al {updatedAt}</p>
<Grid spacing={1} container>
{inffectedCountries.map(country => (
<Grid key={country.country_name} lg={6} item>
<InffectedCountryCard {...country} />
</Grid>
))}
</Grid>
</Container>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment