explorer: Display writable badge instead of readonly badge (#19808)
This commit is contained in:
parent
857fce13f9
commit
f8870ff1e3
|
@ -10,8 +10,8 @@ export function RawDetails({ ix }: { ix: TransactionInstruction }) {
|
||||||
<tr key={keyIndex}>
|
<tr key={keyIndex}>
|
||||||
<td>
|
<td>
|
||||||
<div className="mr-2 d-md-inline">Account #{keyIndex + 1}</div>
|
<div className="mr-2 d-md-inline">Account #{keyIndex + 1}</div>
|
||||||
{!isWritable && (
|
{isWritable && (
|
||||||
<span className="badge badge-soft-info mr-1">Readonly</span>
|
<span className="badge badge-soft-info mr-1">Writable</span>
|
||||||
)}
|
)}
|
||||||
{isSigner && (
|
{isSigner && (
|
||||||
<span className="badge badge-soft-info mr-1">Signer</span>
|
<span className="badge badge-soft-info mr-1">Signer</span>
|
||||||
|
|
|
@ -362,6 +362,7 @@ function AccountsCard({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<tr key={key}>
|
<tr key={key}>
|
||||||
|
<td>{index + 1}</td>
|
||||||
<td>
|
<td>
|
||||||
<Address pubkey={pubkey} link />
|
<Address pubkey={pubkey} link />
|
||||||
</td>
|
</td>
|
||||||
|
@ -375,8 +376,8 @@ function AccountsCard({
|
||||||
{index === 0 && (
|
{index === 0 && (
|
||||||
<span className="badge badge-soft-info mr-1">Fee Payer</span>
|
<span className="badge badge-soft-info mr-1">Fee Payer</span>
|
||||||
)}
|
)}
|
||||||
{!account.writable && (
|
{account.writable && (
|
||||||
<span className="badge badge-soft-info mr-1">Readonly</span>
|
<span className="badge badge-soft-info mr-1">Writable</span>
|
||||||
)}
|
)}
|
||||||
{account.signer && (
|
{account.signer && (
|
||||||
<span className="badge badge-soft-info mr-1">Signer</span>
|
<span className="badge badge-soft-info mr-1">Signer</span>
|
||||||
|
@ -392,12 +393,13 @@ function AccountsCard({
|
||||||
return (
|
return (
|
||||||
<div className="card">
|
<div className="card">
|
||||||
<div className="card-header">
|
<div className="card-header">
|
||||||
<h3 className="card-header-title">Account Inputs</h3>
|
<h3 className="card-header-title">Account Input(s)</h3>
|
||||||
</div>
|
</div>
|
||||||
<div className="table-responsive mb-0">
|
<div className="table-responsive mb-0">
|
||||||
<table className="table table-sm table-nowrap card-table">
|
<table className="table table-sm table-nowrap card-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
<th className="text-muted">#</th>
|
||||||
<th className="text-muted">Address</th>
|
<th className="text-muted">Address</th>
|
||||||
<th className="text-muted">Change (SOL)</th>
|
<th className="text-muted">Change (SOL)</th>
|
||||||
<th className="text-muted">Post Balance (SOL)</th>
|
<th className="text-muted">Post Balance (SOL)</th>
|
||||||
|
|
Loading…
Reference in New Issue