tasks: use Toggle component for recurring task switch
All checks were successful
CI / update (push) Successful in 5m12s

This commit is contained in:
2026-04-02 17:29:33 +02:00
parent 381012db98
commit 866d2e9fff

View File

@@ -2,6 +2,7 @@
import { X, Sparkles, Wind, Bath, UtensilsCrossed, CookingPot, WashingMachine,
Flower2, Droplets, Leaf, ShoppingCart, Trash2, Shirt, Brush } from 'lucide-svelte';
import ProfilePicture from '$lib/components/cospend/ProfilePicture.svelte';
import Toggle from '$lib/components/Toggle.svelte';
const USERS = ['anna', 'alexander'];
@@ -299,10 +300,7 @@
</div>
<div class="field-row">
<label class="checkbox-label">
<input type="checkbox" bind:checked={isRecurring} />
Wiederkehrend
</label>
<Toggle bind:checked={isRecurring} label="Wiederkehrend" accentColor="var(--nord10)" />
</div>
{#if isRecurring}
@@ -670,13 +668,6 @@
.field-row {
margin-bottom: 0.75rem;
}
.checkbox-label {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.85rem;
cursor: pointer;
}
.form-actions {
display: flex;