Update getFlag function to accept size parameter
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
on:click={() => nav(item.country_code)}
|
||||
>{item.name}
|
||||
<img
|
||||
src={getFlag(item.country_code)}
|
||||
src={getFlag(24, item.country_code)}
|
||||
class="inline-block -mt-1 mr-1"
|
||||
alt="Flag"
|
||||
/></button
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<h1 class="text-center text-4xl font-bold">
|
||||
Regions in {countryCodeToName(data.countrycode)}
|
||||
<img
|
||||
src={getFlag(data.countrycode)}
|
||||
src={getFlag(40, data.countrycode)}
|
||||
class="inline-block -mt-1 mr-1"
|
||||
alt="Flag"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user