From d02b72ca24703d8f87d4c78efd2387b8179d80d6 Mon Sep 17 00:00:00 2001 From: Mawoka Date: Thu, 25 Aug 2022 19:23:10 +0200 Subject: [PATCH] :rotating_light: Fixed linter errors --- frontend/src/lib/dashboard/main_slider.svelte | 4 +++- frontend/src/routes/create/+page.server.ts | 1 - frontend/src/routes/dashboard/+page.svelte | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/lib/dashboard/main_slider.svelte b/frontend/src/lib/dashboard/main_slider.svelte index 0fa093e..3db0eff 100644 --- a/frontend/src/lib/dashboard/main_slider.svelte +++ b/frontend/src/lib/dashboard/main_slider.svelte @@ -42,7 +42,7 @@ plausible('Started Game', { props: { quiz_id: id } }); window.location.assign(`/admin?token=${data.game_id}&pin=${data.game_pin}&connect=1`); }; - + /* const deleteQuiz = async (to_delete: string) => { if (!confirm('Do you really want to delete this quiz?')) { return; @@ -52,6 +52,8 @@ }); window.location.reload(); }; + + */
diff --git a/frontend/src/routes/create/+page.server.ts b/frontend/src/routes/create/+page.server.ts index fff608e..8312957 100644 --- a/frontend/src/routes/create/+page.server.ts +++ b/frontend/src/routes/create/+page.server.ts @@ -1,5 +1,4 @@ import { redirect } from '@sveltejs/kit'; -import { signedIn } from '$lib/stores'; export async function load({ parent }) { const { email } = await parent(); diff --git a/frontend/src/routes/dashboard/+page.svelte b/frontend/src/routes/dashboard/+page.svelte index a52b4b2..c873a2d 100644 --- a/frontend/src/routes/dashboard/+page.svelte +++ b/frontend/src/routes/dashboard/+page.svelte @@ -7,7 +7,7 @@ import type { Question } from '$lib/quiz_types'; import { getLocalization } from '$lib/i18n'; import Footer from '$lib/footer.svelte'; - import { alertModal, navbarVisible, signedIn } from '$lib/stores'; + import { navbarVisible, signedIn } from '$lib/stores'; import Spinner from '$lib/Spinner.svelte'; import MiniSearch from 'minisearch';