mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 16:33:36 +00:00
code cleanup round 2
This commit is contained in:
1 parent
aaf12120e6
commit
2ac097d8de
9 files changed
+326
-669
No files matched your search
@@ -2,7 +2,7 @@ import { Button } from '@/components/ui/button';
|
||||
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
import { Loader2, History, ArrowUpRight, ArrowDownLeft, Zap, ChevronDown, ChevronUp, Coins } from 'lucide-react';
|
||||
import type { HistoryEntry } from '@/hooks/cashu/useCashu';
|
||||
import type { HistoryEntry } from 'coco-cashu-core';
|
||||
|
||||
interface TransactionHistoryProps {
|
||||
entries: HistoryEntry[];
|
||||
@@ -129,7 +129,7 @@ export function TransactionHistory({ entries, isLoading, isExpanded, setIsExpand
|
||||
<span className="font-medium">
|
||||
{getHistoryLabel(entry.type)}
|
||||
</span>
|
||||
{entry.state && entry.type !== 'mint' && entry.type !== 'melt' && (
|
||||
{'state' in entry && entry.state && (
|
||||
<Badge
|
||||
variant="secondary"
|
||||
className={`${getHistoryStateColor(entry.state)} text-white text-xs`}
|
||||
|
||||
Reference in new issue
Block a user