Skip to content

Commit

Permalink
Switched FormatPercentage to AnimatedNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
zoey-kaiser committed Sep 20, 2022
1 parent fd2e1a3 commit f6e746f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/components/vault/VaultsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</div>
<div slot="proximityToLiquidation" slot-scope="proximityToLiquidation">
<template v-if="proximityToLiquidation">
<format-percentage :value="proximityToLiquidation" />
<AnimatedNumber :value="proximityToLiquidation" />%
</template>
<span v-else class="opacity-50">Unknown</span>
</div>
Expand Down Expand Up @@ -68,8 +68,8 @@ import Vue, { PropType } from 'vue';
import { Table } from 'ant-design-vue';
import { VaultTransaction, VaultTransactionNotLiquidated } from 'auctions-core/src/types';
import { compareAsc } from 'date-fns';
import AnimatedArrow from '../common/other/AnimatedArrow.vue';
import FormatPercentage from '../common/formatters/FormatPercentage.vue';
import AnimatedArrow from '~/components/common/other/AnimatedArrow.vue';
import AnimatedNumber from '~/components/common/formatters/AnimatedNumber.vue';
import Loading from '~/components/common/other/Loading.vue';
import TimeTill from '~/components/common/formatters/TimeTill.vue';
import FormatCurrency from '~/components/common/formatters/FormatCurrency.vue';
Expand Down Expand Up @@ -99,13 +99,13 @@ const compareBy = function (field: string, cmp: Function = (a: number, b: number
export default Vue.extend({
name: 'VaultsTable',
components: {
FormatPercentage,
AnimatedArrow,
Loading,
Table,
TimeTill,
FormatCurrency,
LoadingIcon,
AnimatedNumber,
},
props: {
vaultTransactions: {
Expand Down

0 comments on commit f6e746f

Please sign in to comment.