Skip to content

Commit

Permalink
cleanup deprecated import
Browse files Browse the repository at this point in the history
  • Loading branch information
seriousme committed Oct 27, 2024
1 parent 171bc91 commit 646a636
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/src/Switch.svelte
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<script>
const active = "btn btn-primary";
const normal = "btn btn-default";
import { createEventDispatcher } from "svelte";
let { sendMsg, value } = $props();
const dispatch = createEventDispatcher();
function toggle() {
const msg = value === "on" ? "off" : "on";
sendMsg(msg);
sendMsg(msg);
}
</script>

Expand Down

0 comments on commit 646a636

Please sign in to comment.