Skip to content

Commit

Permalink
fix(neuron-ui): fix the transaction detail view
Browse files Browse the repository at this point in the history
1. hide the deprecated block hash
2. fix the display of cell out point
  • Loading branch information
Keith-CY committed Sep 11, 2019
1 parent ae680bf commit 9e6da54
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions packages/neuron-ui/src/components/Transaction/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,25 @@ const inputColumns: IColumn[] = [
key: 'lockHash',
name: 'Lock Hash',
minWidth: 100,
maxWidth: 525,
},
{
key: 'outPointBlockHash',
name: 'OutPoint BlockHash',
minWidth: 150,
onRender: (item: any) => <span>{item.previousOutput.blockHash || 'none'}</span>,
maxWidth: 200,
onRender: (item: any) => (
<span title={item.lockHash || 'none'} className="text-overflow">
{item.lockHash || 'none'}
</span>
),
},
{
key: 'outPointCell',
name: 'OutPoint Cell',
minWidth: 150,
onRender: (item: any) => (
<span>
{item.previousOutput.cell ? `${item.previousOutput.cell.txHash}[${item.previousOutput.cell.index}]` : 'none'}
</span>
),
onRender: (item: any) => {
const text = item.previousOutput ? `${item.previousOutput.txHash}[${item.previousOutput.index}]` : 'none'
return (
<span title={text} className="text-overflow">
{text}
</span>
)
},
},
{
key: 'capacity',
Expand Down

0 comments on commit 9e6da54

Please sign in to comment.