migrate: convert most components to svelte 5
This commit is contained in:
1 parent
d670f39f0a
commit
10ef4123da
225 files changed
+5441
-3341
No files matched your search
@@ -1,13 +1,17 @@
|
||||
<script lang="ts">
|
||||
import { run } from 'svelte/legacy';
|
||||
|
||||
import Button from '../button/Button.svelte'
|
||||
import Modal from '../modal/Modal.svelte'
|
||||
import { Icon } from 'svelte-hero-icons'
|
||||
import { shownModal } from './modal.js'
|
||||
|
||||
let open = false
|
||||
let open = $state(false)
|
||||
|
||||
// reactivity hack
|
||||
$: open = $shownModal ? true : false
|
||||
run(() => {
|
||||
open = $shownModal ? true : false
|
||||
});
|
||||
</script>
|
||||
|
||||
{#if $shownModal}
|
||||
|
||||
Reference in new issue
Block a user