diff --git a/frontend/src/lib/index.ts b/frontend/src/lib/index.ts
index df3e9e3..0e14369 100644
--- a/frontend/src/lib/index.ts
+++ b/frontend/src/lib/index.ts
@@ -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) {
diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json
index 3971d1b..6355ce0 100644
--- a/frontend/src/locales/en.json
+++ b/frontend/src/locales/en.json
@@ -203,7 +203,7 @@
"category_fetch_error": "Error fetching categories",
"new_adventure": "New Adventure",
"basic_information": "Basic Information",
- "no_adventures_to_recommendations": "No adventures found. Add at leat one adventure to get recommendations.",
+ "no_adventures_to_recommendations": "No adventures found. Add at least one adventure to get recommendations.",
"display_name": "Display Name",
"adventure_not_found": "There are no adventures to display. Add some using the plus button at the bottom right or try changing filters!",
"no_adventures_found": "No adventures found",
diff --git a/frontend/src/routes/collections/[id]/+page.svelte b/frontend/src/routes/collections/[id]/+page.svelte
index e6b6643..e194d28 100644
--- a/frontend/src/routes/collections/[id]/+page.svelte
+++ b/frontend/src/routes/collections/[id]/+page.svelte
@@ -29,7 +29,7 @@
groupChecklistsByDate,
osmTagToEmoji,
groupLodgingByDate,
- ADVENTURE_TYPE_ICONS
+ LODGING_TYPES_ICONS
} from '$lib';
import ChecklistCard from '$lib/components/ChecklistCard.svelte';
import ChecklistModal from '$lib/components/ChecklistModal.svelte';
@@ -48,8 +48,8 @@
};
function getLodgingIcon(type: string) {
- if (type in ADVENTURE_TYPE_ICONS) {
- return ADVENTURE_TYPE_ICONS[type as keyof typeof ADVENTURE_TYPE_ICONS];
+ if (type in LODGING_TYPES_ICONS) {
+ return LODGING_TYPES_ICONS[type as keyof typeof LODGING_TYPES_ICONS];
} else {
return '🏨';
}
@@ -613,10 +613,6 @@
{/if}
- {#if collection && !collection.start_date && adventures.length == 0 && transportations.length == 0 && notes.length == 0 && checklists.length == 0 && lodging.length == 0}
-