Skip to content

Commit

Permalink
Minor formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ffakenz committed Mar 7, 2024
1 parent 16e23b8 commit 5a8d7e8
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions hydra-explorer/web/src/components/MemberCommitDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,25 @@ const MemberCommitDetails: React.FC<MemberCommitDetailsProps> = ({ member, onClo
</thead>
<tbody>
{member.commits &&
Object.entries(member.commits).map(([commitId, commit], index) => (
<tr key={index} className={`${index % 2 === 0 ? 'bg-gray-700' : 'bg-gray-600'}`}>
<td className="truncate text-center border px-4 py-2">
<a href={`https://sancho.cexplorer.io/tx/${commitId}`} target="_blank" className="text-blue-300 hover:text-blue-500">
{commitId}
</a>
</td>
<td className="truncate text-center border px-4 py-2">
<a href={`https://sancho.cexplorer.io/address/${commit.address}`} target="_blank" className="text-blue-300 hover:text-blue-500">
{commit.address}
</a>
</td>
<td className="truncate text-center border px-4 py-2">{commit.value.lovelace / 1000000}</td>
</tr>
))}
Object.entries(member.commits)
.map(([txIn, commit], index) => {
const [txId, txIx] = txIn.split("#")
return (
<tr key={index} className={`${index % 2 === 0 ? 'bg-gray-700' : 'bg-gray-600'}`}>
<td className="truncate text-center border px-4 py-2">
<a href={`https://sancho.cexplorer.io/tx/${txId}`} target="_blank" className="text-blue-300 hover:text-blue-500">
{txId}
</a>#{txIx}
</td>
<td className="truncate text-center border px-4 py-2">
<a href={`https://sancho.cexplorer.io/address/${commit.address}`} target="_blank" className="text-blue-300 hover:text-blue-500">
{commit.address}
</a>
</td>
<td className="truncate text-center border px-4 py-2">{commit.value.lovelace / 1000000}</td>
</tr>
)
})}
</tbody>
</table>
</div>
Expand Down

0 comments on commit 5a8d7e8

Please sign in to comment.