Skip to content

Commit ec73f1f

Browse files
committed
X402 playground chainlist (#8588)
## [Playground] Fix: Exclude deprecated chains from x402 network selector ## Notes for the reviewer This change enables the existing `disableDeprecated` functionality of the `SingleNetworkSelector` component on the x402 playground page. This ensures that deprecated chains are no longer displayed in the network selection dropdown, consistent with patterns used elsewhere in the codebase. ## How to test 1. Navigate to `https://playground.thirdweb.com/x402`. 2. Open the network selector dropdown. 3. Verify that deprecated chains (e.g., Mumbai) are not listed. --- [Slack Thread](https://thirdwebdev.slack.com/archives/C09DS2CKGP2/p1766589810150189?thread_ts=1766589810.150189&cid=C09DS2CKGP2) <a href="https://cursor.com/background-agent?bcId=bc-662b659b-43e5-4760-8634-cf73b25f1a02"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-cursor-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-cursor-light.svg"><img alt="Open in Cursor" src="https://cursor.com/open-in-cursor.svg"></picture></a>&nbsp;<a href="https://cursor.com/agents?id=bc-662b659b-43e5-4760-8634-cf73b25f1a02"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-web-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-web-light.svg"><img alt="Open in Web" src="https://cursor.com/open-in-web.svg"></picture></a> <!-- start pr-codex --> --- ## PR-Codex overview This PR introduces a new property to a component, enhancing its functionality by allowing it to disable deprecated features. ### Detailed summary - Added the `disableDeprecated` property to the `X402LeftSection` component. - This change modifies the component's behavior, likely affecting how deprecated features are handled. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Updated component configuration to disable deprecated options in the network selector. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 245e9a6 commit ec73f1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/playground-web/src/app/x402/components/X402LeftSection.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ export function X402LeftSection(props: {
128128
onChange={handleChainChange}
129129
placeholder="Select a chain"
130130
className="bg-card"
131+
disableDeprecated
131132
/>
132133
</div>
133134

0 commit comments

Comments
 (0)