You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!--
## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"
If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):
## Notes for the reviewer
Anything important to call out? Be sure to also clarify these in your comments.
## How to test
Unit tests, playground, etc.
-->
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on refining the UI components and code structure in the `apps/portal` directory, improving styles, and enhancing the functionality of various elements such as tabs, lists, and layouts.
### Detailed summary
- Adjusted class names for styling consistency.
- Reduced icon sizes in several components.
- Removed unnecessary background styles from `InlineParameterItem`.
- Simplified `UnorderedList` and `OrderedList` components.
- Enhanced `FeatureCard` layout and styles.
- Updated tab triggers by removing redundant margin classes.
- Streamlined payment-related documentation and examples.
- Improved overall readability and structure in multiple markdown files.
> ✨ 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
- Style
- Simplified tab headers by removing platform icons across multiple pages.
- Updated layout and spacing: Insight grid tweaks, refined DocLayout text color, toned-down lists and parameter blocks, redesigned FeatureCard, and streamlined Table of Contents styling.
- Documentation
- Replaced several tabbed sections with single-flow content; some pages now link directly to live demos.
- Updated examples: Send now illustrates a multi-step execution flow; corrected/cleaned samples for Sell and other payments pages.
- Transactions and Contracts pages use direct endpoint rendering in places for clarity.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
description="Easily understandable data API to query blockchain data."
30
-
iconUrl={<BracesIcon />}
30
+
iconUrl={<BracesIcon/>}
31
31
/>
32
32
33
33
<FeatureCard
@@ -58,7 +58,7 @@ Insight is a tool that lets you retrieve blockchain data from any EVM chain, enr
58
58
59
59
## Video Tutorials
60
60
61
-
<Grid>
61
+
<divclassName="grid gap-4 lg:grid-cols-2">
62
62
63
63
<ArticleCard
64
64
title="Insight Introduction"
@@ -72,7 +72,7 @@ Insight is a tool that lets you retrieve blockchain data from any EVM chain, enr
72
72
href="https://m.youtube.com/watch?v=HvqewXLVRig"
73
73
/>
74
74
75
-
</Grid>
75
+
</div>
76
76
77
77
## Supported Chains
78
78
Insight is supported on select EVM compatible chains. To view the full list, visit [thirdweb chainlist](https://thirdweb.com/chainlist?service=insight).
You can create a payment with either the input amount (sell) or output amount (buy) of a token. Most examples focus on buying a specific amount, but you can just as easily sell a specific amount of tokens.
To generate a sale, use the same inputs as `Buy.prepare`, but with the `Sell.prepare` function. The following function will sell 50 USDT on Arbitrum. The returned `destinationAmount` will indicate how much USDC on Optimism you'll receive after fees.
38
+
To generate a sale, use the same inputs as `Buy.prepare`, but with the `Sell.prepare` function. The following function will sell 50 USDT on Arbitrum. The returned `destinationAmount` will indicate how much USDC on Optimism you'll receive after fees.
47
39
48
-
```typescript
49
-
import { Bridge } from"thirdweb";
40
+
```typescript
41
+
import { Bridge } from"thirdweb";
50
42
51
-
const preparedQuote =awaitBridge.Sell.prepare({
52
-
originChainId: 42161,
53
-
originTokenAddress: "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9", // USDT on Arbitrum
54
-
destinationChainId: 10,
55
-
destinationTokenAddress: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85", // USDC on Optimism
56
-
amount: 50_000_000n, // 50 USDT in wei (USDT has 6 decimals)
0 commit comments