diff --git a/src/components/CountryCard/CountryCard.tsx b/src/components/CountryCard/CountryCard.tsx index 79974c5..da0980d 100644 --- a/src/components/CountryCard/CountryCard.tsx +++ b/src/components/CountryCard/CountryCard.tsx @@ -8,14 +8,14 @@ const CountryCard: React.FC = ({ population, region, capital, - flags, + flag, alpha3Code, }) => { return ( - +

{name}

diff --git a/src/models/Country.ts b/src/models/Country.ts index 427dd34..086aa40 100644 --- a/src/models/Country.ts +++ b/src/models/Country.ts @@ -6,6 +6,7 @@ type Country = { name: string; nativeName: string; flags: string[]; + flag: string; population: number; region: string; continent: string; diff --git a/src/pages/CountryDetails/CountryDetails.tsx b/src/pages/CountryDetails/CountryDetails.tsx index b402b8e..d5c31ea 100644 --- a/src/pages/CountryDetails/CountryDetails.tsx +++ b/src/pages/CountryDetails/CountryDetails.tsx @@ -30,7 +30,7 @@ const CountryDetails: React.FC = () => { - {`flag + {`flag

{country?.name}