BlogDocs

[dashboard] Add copy button for chain id(#3538)

Merged
Merging
dash-52
(
be9118a
) into
main
(
3ffad1a
)
0%
IMPROVEMENTS
0
REGRESSIONS
0
UNTOUCHED
9
NEW
0
DROPPED
0
IGNORED
0

Benchmarks

Passed

encode tx (contract abi)
packages/thirdweb/src/transaction/actions/encode.bench.ts::encode tx (contract abi)
+3%
414.9 µs
403.5 µs
encode tx (prepared method)
packages/thirdweb/src/transaction/actions/encode.bench.ts::encode tx (prepared method)
+1%
343.3 µs
339 µs
encode tx (human readable)
packages/thirdweb/src/transaction/actions/encode.bench.ts::encode tx (human readable)
+1%
381.3 µs
378.4 µs
encode tx (json abi)
packages/thirdweb/src/transaction/actions/encode.bench.ts::encode tx (json abi)
0%
192.1 µs
192.1 µs
keccakId
packages/thirdweb/src/utils/any-evm/keccak-id.bench.ts::keccakId
0%
1.3 ms
1.3 ms
units:toTokens(12345678901234567890n, 18)
packages/thirdweb/src/utils/units.bench.ts::units:toTokens(12345678901234567890n, 18)
0%
25.1 µs
25.1 µs
units:toTokens(40000000000000000000n, 18)
packages/thirdweb/src/utils/units.bench.ts::units:toTokens(40000000000000000000n, 18)
0%
184.2 µs
184.7 µs
units:toUnits("40", 18)
packages/thirdweb/src/utils/units.bench.ts::units:toUnits("40", 18)
-1%
33.5 µs
33.7 µs
units:toUnits("40.0", 18)
packages/thirdweb/src/utils/units.bench.ts::units:toUnits("40.0", 18)
-1%
34.1 µs
34.3 µs

Commits

Click on a commit to change the comparison range
base
main
3ffad1a
0%
[dashboard] Add copy button for chain id (#3538) <!-- start pr-codex --> ## PR-Codex overview The focus of this PR is to add a `CopyTextButton` component with copy functionality and icon positioning to enable copying text in various components. ### Detailed summary - Added `CopyTextButton` component for copying text with icon positioning - Implemented `CopyTextButton` in multiple files for copying chain IDs and addresses - Updated components to include the new `CopyTextButton` for better user experience > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
be9118a
3 months ago
by MananTank
ResourcesHomePricingDocsBlogGitHubChangelog