Render a goal progress bar and its fixtures in the same units as its label
This commit is contained in:
parent
3ff985e117
commit
846480b71e
2 changed files with 4 additions and 3 deletions
|
|
@ -479,7 +479,7 @@ test("US-050 create a funding goal and track its progress", async ({seed, as}) =
|
|||
.writer()
|
||||
.setTitle("New PA system")
|
||||
.setSummary("The old one hums through every song.")
|
||||
.setAmount(50000)
|
||||
.setAmount(toMsats(50000))
|
||||
.setUrls([space.url])
|
||||
.renderTemplate(),
|
||||
at(60, HOUR),
|
||||
|
|
@ -493,7 +493,7 @@ test("US-050 create a funding goal and track its progress", async ({seed, as}) =
|
|||
.writer()
|
||||
.setTitle("Soundproofing")
|
||||
.setSummary("The neighbours have opinions about band practice.")
|
||||
.setAmount(20000)
|
||||
.setAmount(toMsats(20000))
|
||||
.setUrls([space.url])
|
||||
.renderTemplate(),
|
||||
at(30, HOUR),
|
||||
|
|
|
|||
|
|
@ -38,7 +38,8 @@
|
|||
<p class="text-sm opacity-75">{daysOld === 1 ? "day" : "days"} old</p>
|
||||
</div>
|
||||
</div>
|
||||
<progress class="progress" value={$progress.amount} max={$progress.target}></progress>
|
||||
<progress class="progress" value={fromMsats($progress.amount)} max={fromMsats($progress.target)}
|
||||
></progress>
|
||||
<ZapButton {url} {event} class="button button-primary lg:m-auto lg:px-20">
|
||||
<Icon icon={Bolt} />
|
||||
Contribute to this goal
|
||||
|
|
|
|||
Loading…
Reference in a new issue