status first and colored

pull/3637/head
Aniket-Engg 2 years ago committed by Aniket
parent f3b7bd9528
commit afe26b53b1
  1. 7
      apps/etherscan/src/app/views/ReceiptsView.tsx

@ -113,8 +113,8 @@ const ReceiptsTable: React.FC<{ receipts: Receipt[] }> = ({ receipts }) => {
<table className="table table-sm"> <table className="table table-sm">
<thead> <thead>
<tr> <tr>
<th scope="col">Guid</th>
<th scope="col">Status</th> <th scope="col">Status</th>
<th scope="col">GUID</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -123,8 +123,11 @@ const ReceiptsTable: React.FC<{ receipts: Receipt[] }> = ({ receipts }) => {
receipts.map((item: Receipt, index) => { receipts.map((item: Receipt, index) => {
return ( return (
<tr key={item.guid}> <tr key={item.guid}>
<td className={item.status === 'Pass - Verified'
? 'text-success' : (item.status === 'Pending in queue'
? 'text-warning' : (item.status === 'Already Verified'
? 'text-info': 'text-secondary'))}>{item.status}</td>
<td>{item.guid}</td> <td>{item.guid}</td>
<td>{item.status}</td>
</tr> </tr>
) )
})} })}

Loading…
Cancel
Save