From 68851c6257f76b93cd85215e406d102d075de2c3 Mon Sep 17 00:00:00 2001 From: Alex <$(pass /github/email)> Date: Mon, 3 Mar 2025 17:51:12 +0100 Subject: [PATCH] frontend: DO IT THE SVELTE WAY --- frontend/src/lib/components/UserEditForm.svelte | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/frontend/src/lib/components/UserEditForm.svelte b/frontend/src/lib/components/UserEditForm.svelte index b3375b9..829eb79 100644 --- a/frontend/src/lib/components/UserEditForm.svelte +++ b/frontend/src/lib/components/UserEditForm.svelte @@ -99,14 +99,6 @@ ); } - /** - * Sets the active tab - * @param {string} tab - The tab to set as active - */ - function setActiveTab(tab) { - activeTab = tab; - } - /** @type {import('../../routes/auth/about/[id]/$types').SubmitFunction} */ const handleUpdate = async () => { isUpdating = true; @@ -158,7 +150,7 @@ type="button" class="button-dark" class:active={activeTab === tab} - on:click={() => setActiveTab(tab)} + on:click={() => (activeTab = tab)} > {$t(tab)}