Skip to content

Commit

Permalink
Fix writable badge color for ix cards (#359)
Browse files Browse the repository at this point in the history
Use `bg-danger-soft` everywhere for Writable badges
  • Loading branch information
ngundotra authored Aug 6, 2024
1 parent 1e4125d commit 5235404
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/components/inspector/AddressTableLookupsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function LookupRow({
</td>
<td className="text-lg-end">{lookupTableIndex}</td>
<td className="text-lg-end">{resolvedKeyComponent}</td>
<td>{!readOnly && <span className="badge bg-info-soft me-1">Writable</span>}</td>
<td>{!readOnly && <span className="badge bg-danger-soft me-1">Writable</span>}</td>
</tr>
);
}
2 changes: 1 addition & 1 deletion app/components/instruction/AnchorDetailsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function AnchorDetails({ ix, anchorProgram }: { ix: TransactionInstruction; anch
: `Remaining Account #${keyIndex + 1 - ixAccounts.length}`
: `Account #${keyIndex + 1}`}
</div>
{isWritable && <span className="badge bg-info-soft me-1">Writable</span>}
{isWritable && <span className="badge bg-danger-soft me-1">Writable</span>}
{isSigner && <span className="badge bg-info-soft me-1">Signer</span>}
</td>
<td className="text-lg-end" colSpan={2}>
Expand Down
2 changes: 1 addition & 1 deletion app/components/instruction/RawDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function RawDetails({ ix }: { ix: TransactionInstruction }) {
<tr key={keyIndex}>
<td>
<div className="me-2 d-md-inline">Account #{keyIndex + 1}</div>
{isWritable && <span className="badge bg-info-soft me-1">Writable</span>}
{isWritable && <span className="badge bg-danger-soft me-1">Writable</span>}
{isSigner && <span className="badge bg-info-soft me-1">Signer</span>}
</td>
<td className="text-lg-end">
Expand Down

0 comments on commit 5235404

Please sign in to comment.