diff --git a/src/interface/components/SignInToFavoriteModal.svelte b/src/interface/components/SignInToFavoriteModal.svelte index 24f21e1b..2f5f178f 100644 --- a/src/interface/components/SignInToFavoriteModal.svelte +++ b/src/interface/components/SignInToFavoriteModal.svelte @@ -1,29 +1,32 @@
- Sign in in the Theme Store to save favorites across devices, or create an account to get started. +
+ Sign in to the Theme Store to save favorites across devices, or create an account to get started.
-+ {introText} +
+{/if} + diff --git a/src/interface/components/store/ThemeCard.svelte b/src/interface/components/store/ThemeCard.svelte index 7b28a504..97dad4a3 100644 --- a/src/interface/components/store/ThemeCard.svelte +++ b/src/interface/components/store/ThemeCard.svelte @@ -2,16 +2,14 @@ import type { Theme } from '@/interface/types/Theme' import { fade } from 'svelte/transition'; import { onMount } from 'svelte'; - import SignInToFavoriteModal from '@/interface/components/SignInToFavoriteModal.svelte'; - - let { theme, onClick, toggleFavorite, isLoggedIn } = $props<{ + let { theme, onClick, toggleFavorite, isLoggedIn, onRequestSignIn } = $props<{ theme: Theme; onClick: () => void; toggleFavorite: (theme: Theme) => void; isLoggedIn: boolean; + onRequestSignIn?: () => void; }>(); let menuOpen = $state(false); - let showSignInModal = $state(false); let menuRef: HTMLDivElement; onMount(() => { @@ -34,14 +32,23 @@ if (isLoggedIn) { toggleFavorite(theme); } else { - showSignInModal = true; + onRequestSignIn?.(); } menuOpen = false; } -