diff --git a/components/PoisDetails/PoiDetails.vue b/components/PoisDetails/PoiDetails.vue index 4b99b6f9..b36366db 100644 --- a/components/PoisDetails/PoiDetails.vue +++ b/components/PoisDetails/PoiDetails.vue @@ -11,11 +11,10 @@ import IconButton from '~/components/UI/IconButton.vue' import RelativeDate from '~/components/UI/RelativeDate.vue' import TeritorioIcon from '~/components/UI/TeritorioIcon.vue' import TeritorioIconBadge from '~/components/UI/TeritorioIconBadge.vue' -import type { ContentEntry } from '~/lib/apiContent' import type { ApiPoiDeps } from '~/lib/apiPoiDeps' import type { ApiPoi, FieldsList } from '~/lib/apiPois' -import type { Settings } from '~/lib/apiSettings' import { favoriteStore as useFavoriteStore } from '~/stores/favorite' +import { siteStore as useSiteStore } from '~/stores/site' import { OriginEnum } from '~/utils/types' import FieldsHeader from '~/components/UI/FieldsHeader.vue' import ContribFieldGroup from '~/components/Fields/ContribFieldGroup.vue' @@ -26,8 +25,6 @@ import Footer from '~/components/Layout/Footer.vue' // Props // const props = defineProps<{ - settings: Settings - navMenuEntries: ContentEntry[] poi: ApiPoi poiDeps?: ApiPoiDeps pageTitle: string @@ -40,6 +37,7 @@ const router = useRouter() const route = useRoute() const { $tracking } = useNuxtApp() const { t } = useI18n() +const { settings, contents } = storeToRefs(useSiteStore()) const { contribMode, isContribEligible, getContributorFields } = useContrib() const favoriteStore = useFavoriteStore() const { favoritesIds, favoriteAddresses } = storeToRefs(favoriteStore) @@ -48,7 +46,7 @@ const { favoritesIds, favoriteAddresses } = storeToRefs(favoriteStore) // Computed // const favoritesModeEnabled = computed(() => { - return props.settings.themes[0]?.favorites_mode ?? true + return settings.value?.themes[0]?.favorites_mode ?? true }) const isLargeLayeout = computed(() => { @@ -151,8 +149,8 @@ function back() {