Add modal confirmation to mode change

This commit is contained in:
2025-03-07 15:40:42 +01:00
parent b974ac8936
commit 7498d9066e
3 changed files with 35 additions and 8 deletions

View File

@@ -1,6 +1,5 @@
<script lang="ts">
import type { TrackerData } from "$lib/utils/types";
import { onMount } from "svelte";
import Modal from "./Modal.svelte";
type Props = {
@@ -56,10 +55,8 @@
let z_viz = $derived(trackers[selected].z.toFixed(2));
</script>
<Modal />
<div class="slider-container ml-auto">
<button class="bg-red-400 rounded-md p-2 mb-24"
onclick={buttonAction}>Change mode</button>
<Modal action={buttonAction} />
<input
type="range"
id="z"