diff --git a/src/components/record-detail.tsx b/src/components/record-detail.tsx index 17f0b218..7b75909e 100644 --- a/src/components/record-detail.tsx +++ b/src/components/record-detail.tsx @@ -2,7 +2,7 @@ import { BaseBridge } from "@/bridges"; import { GQL_HISTORY_RECORD_BY_ID } from "@/config"; -import { HistoryRecordReqParams, HistoryRecordResData } from "@/types"; +import { HistoryRecordReqParams, HistoryRecordResData, RecordResult } from "@/types"; import ComponentLoading from "@/ui/component-loading"; import CountdownRefresh from "@/ui/countdown-refresh"; import { bridgeFactory, getChainConfig } from "@/utils"; @@ -66,21 +66,19 @@ export default function RecordDetail(props: Props) { - + - + @@ -152,3 +150,11 @@ function Item({ label, tips, children }: PropsWithChildren<{ label: string; tips function Divider() { return
; } + +function isRefundStatus(result: RecordResult | undefined) { + return ( + result === RecordResult.PENDING_TO_CONFIRM_REFUND || + result === RecordResult.PENDING_TO_REFUND || + result === RecordResult.REFUNDED + ); +}