Explorer: Show empty state when block has no transactions (#13259)
This commit is contained in:
parent
de71fb9bdd
commit
2cf44a9e14
|
@ -68,6 +68,9 @@ export function BlockHistoryCard({ slot }: { slot: number }) {
|
||||||
</TableCardBody>
|
</TableCardBody>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{confirmedBlock.data.transactions.length === 0 ? (
|
||||||
|
<ErrorCard text="This block has no transactions" />
|
||||||
|
) : (
|
||||||
<div className="card">
|
<div className="card">
|
||||||
<div className="card-header align-items-center">
|
<div className="card-header align-items-center">
|
||||||
<h3 className="card-header-title">Block Transactions</h3>
|
<h3 className="card-header-title">Block Transactions</h3>
|
||||||
|
@ -119,6 +122,7 @@ export function BlockHistoryCard({ slot }: { slot: number }) {
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue