1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-19 04:49:37 +02:00

feat: Add lodging types icons and update related components

This commit is contained in:
Sean Morley 2025-03-15 23:55:53 -04:00
parent a640934370
commit c2fc249c92
3 changed files with 21 additions and 11 deletions

View file

@ -324,6 +324,20 @@ export let ADVENTURE_TYPE_ICONS = {
other: '❓'
};
export let LODGING_TYPES_ICONS = {
hotel: '🏨',
hostel: '🛏️',
resort: '🏝️',
bnb: '🍳',
campground: '🏕️',
cabin: '🏚️',
apartment: '🏢',
house: '🏠',
villa: '🏡',
motel: '🚗🏨',
other: '❓'
};
export function getAdventureTypeLabel(type: string) {
// return the emoji ADVENTURE_TYPE_ICONS label for the given type if not found return ? emoji
if (type in ADVENTURE_TYPE_ICONS) {