From 77f5eefb0cb7a83edec0201120c76fe6e2cf637c Mon Sep 17 00:00:00 2001 From: wjtje <33957974+wjtje@users.noreply.github.com> Date: Wed, 15 Feb 2023 14:48:15 +0100 Subject: [PATCH] Fix type import --- UI/BigComponents/HiddenThemeList.svelte | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/UI/BigComponents/HiddenThemeList.svelte b/UI/BigComponents/HiddenThemeList.svelte index 5432b05875..a4c169ac04 100644 --- a/UI/BigComponents/HiddenThemeList.svelte +++ b/UI/BigComponents/HiddenThemeList.svelte @@ -4,15 +4,18 @@ import type Loc from "../../Models/Loc" import * as themeOverview from "../../assets/generated/theme_overview.json" import { Utils } from "../../Utils" - import ThemesList, { type Theme } from "./ThemesList.svelte" + import ThemesList from "./ThemesList.svelte" import Translations from "../i18n/Translations" + import { LayoutInformation } from "../../Models/ThemeConfig/LayoutConfig" export let search: UIEventSource export let state: { osmConnection: OsmConnection; locationControl?: UIEventSource } export let onMainScreen: boolean = true const prefix = "mapcomplete-hidden-theme-" - const hiddenThemes: Theme[] = themeOverview["default"].filter((layout) => layout.hideFromOverview) + const hiddenThemes: LayoutInformation[] = themeOverview["default"].filter( + (layout) => layout.hideFromOverview + ) const userPreferences = state.osmConnection.preferencesHandler.preferences const t = Translations.t.general.morescreen