Skip to content

Commit 9e6da54

Browse files
committed
fix(neuron-ui): fix the transaction detail view
1. hide the deprecated block hash 2. fix the display of cell out point
1 parent ae680bf commit 9e6da54

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

  • packages/neuron-ui/src/components/Transaction

packages/neuron-ui/src/components/Transaction/index.tsx

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,25 @@ const inputColumns: IColumn[] = [
1616
key: 'lockHash',
1717
name: 'Lock Hash',
1818
minWidth: 100,
19-
maxWidth: 525,
20-
},
21-
{
22-
key: 'outPointBlockHash',
23-
name: 'OutPoint BlockHash',
24-
minWidth: 150,
25-
onRender: (item: any) => <span>{item.previousOutput.blockHash || 'none'}</span>,
19+
maxWidth: 200,
20+
onRender: (item: any) => (
21+
<span title={item.lockHash || 'none'} className="text-overflow">
22+
{item.lockHash || 'none'}
23+
</span>
24+
),
2625
},
2726
{
2827
key: 'outPointCell',
2928
name: 'OutPoint Cell',
3029
minWidth: 150,
31-
onRender: (item: any) => (
32-
<span>
33-
{item.previousOutput.cell ? `${item.previousOutput.cell.txHash}[${item.previousOutput.cell.index}]` : 'none'}
34-
</span>
35-
),
30+
onRender: (item: any) => {
31+
const text = item.previousOutput ? `${item.previousOutput.txHash}[${item.previousOutput.index}]` : 'none'
32+
return (
33+
<span title={text} className="text-overflow">
34+
{text}
35+
</span>
36+
)
37+
},
3638
},
3739
{
3840
key: 'capacity',

0 commit comments

Comments
 (0)