Skip to content

Commit f80f0f9

Browse files
committed
refix based on Cattie's commit.
1 parent 37f8f13 commit f80f0f9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

frontend/components/common/general/dispute-dialog.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ export function ViewDisputeHistoryDialog({ order }: { order: Order }) {
359359
return {
360360
tooltip: '争议已拒绝,点击查看',
361361
timelineText: '服务方驳回争议',
362-
timelineColor: 'destructive',
362+
isRed: true,
363363
showTimestamp: true,
364364
showContent: false,
365365
content: null
@@ -368,7 +368,7 @@ export function ViewDisputeHistoryDialog({ order }: { order: Order }) {
368368
return {
369369
tooltip: '争议已退款',
370370
timelineText: '服务方已退款',
371-
timelineColor: 'primary',
371+
isRed: false,
372372
showTimestamp: true,
373373
showContent: true,
374374
content: '退款已完成'
@@ -377,19 +377,19 @@ export function ViewDisputeHistoryDialog({ order }: { order: Order }) {
377377
return {
378378
tooltip: '争议处理中,点击查看',
379379
timelineText: '争议进行中,等待服务方处理',
380-
timelineColor: 'primary',
380+
isRed: false,
381381
showTimestamp: false,
382382
showContent: false,
383383
content: null
384384
}
385385
default:
386386
return {
387-
tooltip: '未知状态',
387+
tooltip: 'w?',
388388
timelineText: '不知道的状态欸w,刷新一下页面试试?',
389-
timelineColor: 'primary',
389+
isRed: true,
390390
showTimestamp: false,
391-
showContent: false,
392-
content: null
391+
showContent: true,
392+
content: '出现问题了呢w'
393393
}
394394
}
395395
}, [order.status])
@@ -488,10 +488,10 @@ export function ViewDisputeHistoryDialog({ order }: { order: Order }) {
488488
</div>
489489

490490
<div className="relative">
491-
<div className={`absolute -left-[21px] top-1 h-2.5 w-2.5 rounded-full ${disputeConfig.timelineColor === 'destructive' ? 'bg-destructive' : 'bg-primary'} ring-4 ring-background`} />
491+
<div className={`absolute -left-[21px] top-1 h-2.5 w-2.5 rounded-full ${disputeConfig.isRed ? 'bg-destructive' : 'bg-primary'} ring-4 ring-background`} />
492492
<div className="space-y-1">
493493
<div className="flex items-center justify-between">
494-
<span className={`text-sm font-medium ${disputeConfig.timelineColor === 'destructive' ? 'text-destructive' : ''}`}>
494+
<span className={`text-sm font-medium ${disputeConfig.isRed ? 'text-destructive' : ''}`}>
495495
{disputeConfig.timelineText}
496496
</span>
497497
{disputeConfig.showTimestamp && (

0 commit comments

Comments
 (0)