Skip to content

Commit

Permalink
refactor(WalletBalance): class refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
RealGoodProgrammer committed Mar 7, 2024
1 parent 8fad42d commit 8bd3f12
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/components/wallets/WalletBalance.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
<template>
<div class="px-0" :class="[classes.root, balance === 0 && 'justify-center']">
<p :class="[classes.statusTitle, balance === 0 && 'a-text-explanation']" class="text-end">
<div
class="px-0"
:class="{
[classes.root]: true,
'justify-center': balance === 0
}"
>
<p
:class="{ [classes.statusTitle]: true, 'a-text-explanation': balance === 0 }"
class="text-end"
>
{{ xs ? calculatedBalance : calculatedFullBalance }}
<v-tooltip
v-if="xs && calculatedFullBalance.toString().length > SIGNIFICANT_DIGITS"
Expand Down

0 comments on commit 8bd3f12

Please sign in to comment.