From 670e1e0b98e72f2965f8cf3b1364baa333bb6ccc Mon Sep 17 00:00:00 2001 From: Quentin Burg Date: Mon, 22 Jan 2024 16:24:54 +0100 Subject: [PATCH] :bug: fix progress bar display --- examples/nft/src/lib/MintingComponent.svelte | 16 +++++++++++++++- examples/nft/src/lib/Nav.svelte | 2 +- examples/nft/src/lib/StakingComponent.svelte | 20 +++++++++++++++++--- examples/nft/src/routes/+page.svelte | 11 ----------- 4 files changed, 33 insertions(+), 16 deletions(-) diff --git a/examples/nft/src/lib/MintingComponent.svelte b/examples/nft/src/lib/MintingComponent.svelte index 6340d08..1a6ae3b 100644 --- a/examples/nft/src/lib/MintingComponent.svelte +++ b/examples/nft/src/lib/MintingComponent.svelte @@ -17,7 +17,7 @@ /*** Generate a random integer up to a given maximum value. * It uses to generate a random token ID when minting. */ - function randomInt(max) { + function randomInt(max: number) { return Math.floor(Math.random() * max); } @@ -138,3 +138,17 @@ {/if} + + \ No newline at end of file diff --git a/examples/nft/src/lib/Nav.svelte b/examples/nft/src/lib/Nav.svelte index de31c0a..e1b1fd7 100644 --- a/examples/nft/src/lib/Nav.svelte +++ b/examples/nft/src/lib/Nav.svelte @@ -1,7 +1,7 @@