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:
parent
a640934370
commit
c2fc249c92
3 changed files with 21 additions and 11 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue