@@ -80,29 +80,24 @@ function BundleViewer({ bundle }: BundleViewerProps) {
8080 ) ;
8181 const { tokens } = useDexie ( ) ;
8282
83- const totalCost = useMemo ( ( ) => {
84- return bundle . coinSpends . reduce ( ( acc , spend ) => {
85- const cost = typeof spend . cost === 'number' ? spend . cost : 0 ;
86- return acc + cost ;
87- } , 0 ) ;
88- } , [ bundle . coinSpends ] ) ;
89-
9083 return (
9184 < div className = 'flex flex-col gap-4 mt-4' >
92- < div className = 'p-4 rounded-md bg-card' >
93- < div className = 'text-lg font-medium mb-2' > Bundle Information </ div >
94- < div className = 'grid grid-cols-2 gap-4 text-sm' >
95- < div >
96- < div className = 'text-muted-foreground' > Total Cost</ div >
97- < div > { totalCost } </ div >
85+ < div className = 'p-4 rounded-md bg-card border border-input ' >
86+ < div className = 'text-lg font-medium mb-2' > Spend Bundle </ div >
87+ < div className = 'flex flex-col gap-1 text-sm' >
88+ < div className = 'flex flex-col' >
89+ < div className = 'text-muted-foreground' > Cost</ div >
90+ < div > { bundle . totalCost } </ div >
9891 </ div >
99- < div >
100- < div className = 'text-muted-foreground' > Total Spends</ div >
92+
93+ < div className = 'flex flex-col' >
94+ < div className = 'text-muted-foreground' > Spends</ div >
10195 < div > { bundle . coinSpends . length } </ div >
10296 </ div >
103- < div className = 'col-span-2' >
97+
98+ < div className = 'flex flex-col' >
10499 < div className = 'text-muted-foreground' > Bundle Hash</ div >
105- < div className = 'truncate' > 0x1234567890abcdef </ div >
100+ < Truncated value = { bundle . hash } / >
106101 </ div >
107102 </ div >
108103 </ div >
@@ -192,7 +187,7 @@ function SpendViewer({ spend }: SpendViewerProps) {
192187 return (
193188 < div className = 'flex flex-col gap-3 p-3 rounded-t-none rounded-md bg-card border border-t-0 border-input' >
194189 < div className = 'grid grid-cols-1 md:grid-cols-2 gap-3' >
195- < div className = 'flex flex-col gap-1 p-2 rounded-md bg-accent text-sm' >
190+ < div className = 'flex flex-col gap-1 p-2 rounded-md text-sm border border-input/30 bg-accent/40 ' >
196191 < div className = 'flex flex-col' >
197192 < div className = 'text-muted-foreground' > Coin ID</ div >
198193 < Truncated
@@ -217,7 +212,7 @@ function SpendViewer({ spend }: SpendViewerProps) {
217212 </ div >
218213 </ div >
219214
220- < div className = 'flex flex-col gap-1 p-2 rounded-md bg-accent text-sm' >
215+ < div className = 'flex flex-col gap-1 p-2 rounded-md text-sm border border-input/30 bg-accent/40 ' >
221216 < div className = 'flex flex-col' >
222217 < div className = 'text-muted-foreground' > Puzzle Reveal</ div >
223218 < Truncated value = { spend . puzzleReveal } />
0 commit comments