Update to svelte 5
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import Button from "layout/Button.svelte"
|
||||
import { onMount } from "svelte";
|
||||
import CardAccount from "./CardAccount.svelte";
|
||||
@@ -10,7 +10,7 @@ import CardPrepaidTransactions from "./CardPrepaidTransactions.svelte";
|
||||
import AddressReputation from "home_page/AddressReputation.svelte";
|
||||
import { flip } from "svelte/animate";
|
||||
|
||||
let cards = []
|
||||
let cards = $state([])
|
||||
|
||||
const save = () => {
|
||||
let storage = {
|
||||
@@ -159,7 +159,7 @@ onMount(() => {
|
||||
|
||||
{#if !card.hidden && card.size > 0}
|
||||
<div class="card_component">
|
||||
<svelte:component this={card.elem} card_size={card.size}/>
|
||||
<card.elem card_size={card.size}/>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user