order detail foldout

This commit is contained in:
Tim Olson
2023-12-09 00:12:24 -04:00
parent aa731d678e
commit 7e33ffba76
5 changed files with 88 additions and 36 deletions

View File

@@ -1,5 +1,5 @@
<template>
<span>{{fmtAmount}} {{ token.symbol || '' }}</span>
<span>{{fmtAmount}} {{ raw ? '' : (token.symbol || '') }}</span>
</template>
<script setup>
@@ -9,7 +9,7 @@ import {FixedNumber} from "ethers";
import {computed, ref} from "vue";
const s = useStore()
const props = defineProps(['addr', 'amount'])
const props = defineProps(['addr', 'amount', 'raw'])
const token = await getToken(props.addr)
const fmtAmount = computed(() => {
if( props.amount === null || props.amount === undefined )