mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-19 04:49:37 +02:00
Add continent code to the country cards
This commit is contained in:
parent
bdb37c5ca1
commit
2d7fe56086
3 changed files with 106 additions and 1 deletions
|
@ -177,3 +177,24 @@ export function groupChecklistsByDate(
|
|||
|
||||
return groupedChecklists;
|
||||
}
|
||||
|
||||
export function continentCodeToString(code: string) {
|
||||
switch (code) {
|
||||
case 'AF':
|
||||
return 'Africa';
|
||||
case 'AN':
|
||||
return 'Antarctica';
|
||||
case 'AS':
|
||||
return 'Asia';
|
||||
case 'EU':
|
||||
return 'Europe';
|
||||
case 'NA':
|
||||
return 'North America';
|
||||
case 'OC':
|
||||
return 'Oceania';
|
||||
case 'SA':
|
||||
return 'South America';
|
||||
default:
|
||||
return 'Unknown';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue