Add subscription management page and currency widget

This commit is contained in:
2021-11-16 21:11:59 +01:00
parent 312b6e8a89
commit 772bb40030
7 changed files with 238 additions and 67 deletions

View File

@@ -0,0 +1,20 @@
<script>
export let amount = 0
export let precision = 2
</script>
<span>
<span class:red={amount < 0} class:green={amount > 0}>
{(amount / 1000000).toFixed(precision)}
</span>
</span>
<style>
.red {
color: var(--danger_color);
}
.green {
color: var(--highlight_color);
}
</style>