From c9e3bd2f4a1fae8da778d17484369998937b146d Mon Sep 17 00:00:00 2001 From: davidemarcoli Date: Sat, 16 Nov 2024 11:54:45 +0100 Subject: [PATCH] fix: update ranking data type export and clean up form field props --- src/lib/forms/helpers.ts | 2 +- src/lib/forms/ranking-form.svelte | 8 ++++---- src/routes/browse/+page.svelte | 8 ++------ src/routes/settings/ranking/+page.server.ts | 5 +++-- 4 files changed, 10 insertions(+), 13 deletions(-) diff --git a/src/lib/forms/helpers.ts b/src/lib/forms/helpers.ts index 0c84843..13886a7 100644 --- a/src/lib/forms/helpers.ts +++ b/src/lib/forms/helpers.ts @@ -776,7 +776,7 @@ type CustomRanks = { trash: Ranks; }; -type RankingData = { +export type RankingData = { ranking: { custom_ranks: CustomRanks; // eslint-disable-next-line @typescript-eslint/no-explicit-any diff --git a/src/lib/forms/ranking-form.svelte b/src/lib/forms/ranking-form.svelte index 9ba4919..df7906f 100644 --- a/src/lib/forms/ranking-form.svelte +++ b/src/lib/forms/ranking-form.svelte @@ -255,7 +255,7 @@

Options

- + @@ -266,11 +266,11 @@

Languages

- + - + - +