From f8870ff1e39c669456052c29ab8b99b87b7744bc Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Sun, 12 Sep 2021 02:46:08 -0500 Subject: [PATCH] explorer: Display writable badge instead of readonly badge (#19808) --- explorer/src/components/instruction/RawDetails.tsx | 4 ++-- explorer/src/pages/TransactionDetailsPage.tsx | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/explorer/src/components/instruction/RawDetails.tsx b/explorer/src/components/instruction/RawDetails.tsx index 7cff419cd..731e6bfb5 100644 --- a/explorer/src/components/instruction/RawDetails.tsx +++ b/explorer/src/components/instruction/RawDetails.tsx @@ -10,8 +10,8 @@ export function RawDetails({ ix }: { ix: TransactionInstruction }) {
Account #{keyIndex + 1}
- {!isWritable && ( - Readonly + {isWritable && ( + Writable )} {isSigner && ( Signer diff --git a/explorer/src/pages/TransactionDetailsPage.tsx b/explorer/src/pages/TransactionDetailsPage.tsx index a0dc55415..8c3d144d6 100644 --- a/explorer/src/pages/TransactionDetailsPage.tsx +++ b/explorer/src/pages/TransactionDetailsPage.tsx @@ -362,6 +362,7 @@ function AccountsCard({ return ( + {index + 1}
@@ -375,8 +376,8 @@ function AccountsCard({ {index === 0 && ( Fee Payer )} - {!account.writable && ( - Readonly + {account.writable && ( + Writable )} {account.signer && ( Signer @@ -392,12 +393,13 @@ function AccountsCard({ return (
-

Account Inputs

+

Account Input(s)

+
# Address Change (SOL) Post Balance (SOL)