Skip to content
This repository was archived by the owner on Feb 12, 2026. It is now read-only.

Commit 9b3e120

Browse files
committed
fix: resolve expand all/collapse all regression
1 parent 31103ed commit 9b3e120

3 files changed

Lines changed: 8 additions & 10 deletions

File tree

src/components/client/Instruction.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,10 @@ export const Instruction: React.FC<{ index: number }> = ({ index }) => {
144144
</Flex>
145145

146146
<Flex ml="70px" mb="4">
147-
{programInfo.label && <Tag>{programInfo.label}</Tag>}
148-
{anchorMethod && <Tag>{`Anchor Method: ${anchorMethod}`}</Tag>}
147+
{programInfo.label && <Tag size="sm">{programInfo.label}</Tag>}
148+
{anchorMethod && (
149+
<Tag size="sm">{`Anchor Method: ${anchorMethod}`}</Tag>
150+
)}
149151
</Flex>
150152

151153
<Accounts accounts={accounts} anchorAccounts={anchorAccounts} />

src/components/client/TransactionHeader.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,17 +148,13 @@ export const TransactionHeader: React.FC<{ transaction: ITransaction }> = ({
148148
<MenuList zIndex="modal">
149149
<MenuItem
150150
icon={<Icon as={FaExpand} />}
151-
onClick={() => {
152-
setAllExpanded(true);
153-
}}
151+
onClick={setAllExpanded(true)}
154152
>
155153
Expand All
156154
</MenuItem>
157155
<MenuItem
158156
icon={<Icon as={FaCompress} />}
159-
onClick={() => {
160-
setAllExpanded(false);
161-
}}
157+
onClick={setAllExpanded(false)}
162158
>
163159
Collapse All
164160
</MenuItem>

src/utils/ui-constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Finality } from "@solana/web3.js";
1+
import { Commitment, Finality } from "@solana/web3.js";
22
import { DataFormat, InstructionDataFieldType } from "../types/internal";
33
import { Explorer } from "../types/state";
44

@@ -12,7 +12,7 @@ export const EXPLORERS: { id: Explorer; name: string }[] = [
1212
];
1313

1414
// for commitment level option drop-downs
15-
export const COMMITMENT_LEVELS = [
15+
export const COMMITMENT_LEVELS: { id: Commitment; name: string }[] = [
1616
{ id: "processed", name: "Processed" },
1717
{ id: "confirmed", name: "Confirmed" },
1818
{ id: "finalized", name: "Finalized" },

0 commit comments

Comments
 (0)