Update to svelte 5
This commit is contained in:
@@ -6,8 +6,8 @@ import { loading_finish, loading_start } from "lib/Loading";
|
||||
|
||||
let year = 0
|
||||
let month = 0
|
||||
let month_str = ""
|
||||
let transactions = {
|
||||
let month_str = $state("")
|
||||
let transactions = $state({
|
||||
rows: [],
|
||||
total_subscription_charge: 0,
|
||||
total_storage_used: 0,
|
||||
@@ -17,7 +17,7 @@ let transactions = {
|
||||
total_affiliate_amount: 0,
|
||||
total_deposited: 0,
|
||||
total_deducted: 0,
|
||||
}
|
||||
})
|
||||
|
||||
const load_transactions = async () => {
|
||||
loading_start()
|
||||
@@ -113,12 +113,12 @@ onMount(() => {
|
||||
|
||||
<h3>{month_str}</h3>
|
||||
<div class="toolbar">
|
||||
<button on:click={last_month}>
|
||||
<button onclick={last_month}>
|
||||
<i class="icon">chevron_left</i>
|
||||
Previous month
|
||||
</button>
|
||||
<div class="toolbar_spacer"></div>
|
||||
<button on:click={next_month}>
|
||||
<button onclick={next_month}>
|
||||
Next month
|
||||
<i class="icon">chevron_right</i>
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user