BlogDocs

[Fix] Update import paths in engine-explorer and _app.tsx for better modularity(#3547)

Merged
Merging
fix/update-imports-in-dashboard-components
(
3ffad1a
) into
main
(
37d9373
)
0%
IMPROVEMENTS
0
REGRESSIONS
0
UNTOUCHED
9
NEW
0
DROPPED
0
IGNORED
0

Benchmarks

Passed

encode tx (human readable)
packages/thirdweb/src/transaction/actions/encode.bench.ts::encode tx (human readable)
+2%
387 µs
378.2 µs
encode tx (prepared method)
packages/thirdweb/src/transaction/actions/encode.bench.ts::encode tx (prepared method)
+1%
343.2 µs
338.6 µs
units:toUnits("40", 18)
packages/thirdweb/src/utils/units.bench.ts::units:toUnits("40", 18)
0%
33.7 µs
33.6 µs
encode tx (contract abi)
packages/thirdweb/src/transaction/actions/encode.bench.ts::encode tx (contract abi)
0%
407.9 µs
407.3 µs
units:toUnits("40.0", 18)
packages/thirdweb/src/utils/units.bench.ts::units:toUnits("40.0", 18)
0%
34.2 µs
34.2 µs
units:toTokens(40000000000000000000n, 18)
packages/thirdweb/src/utils/units.bench.ts::units:toTokens(40000000000000000000n, 18)
0%
184.3 µs
184.3 µ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.2 µs
encode tx (json abi)
packages/thirdweb/src/transaction/actions/encode.bench.ts::encode tx (json abi)
-1%
193 µs
194 µs

Commits

Click on a commit to change the comparison range
base
main
37d9373
0%
[Fix] Update import paths in engine-explorer and _app.tsx for better modularity (#3547) ### TL;DR Corrected stylesheet imports for `swagger-ui.css` in the Engine Explorer component and added the Toaster component import in the _app.tsx. ### What changed? - Added missing `swagger-ui.css` import in `engine-explorer.tsx` - Removed duplicate `swagger-ui.css` import from `_app.tsx` - Ensured Toaster component import in `_app.tsx` ### How to test? - Verify UI for the Engine Explorer relies on the correct styles - Ensure the Toaster component renders correctly without issues ### Why make this change? To ensure the correct CSS styles are applied and to improve the maintainability of the import statements. --- <!-- start pr-codex --> --- ## PR-Codex overview This PR adds `swagger-ui.css` to `engine-explorer.tsx` and removes it from `_app.tsx`. ### Detailed summary - Added `swagger-ui.css` import to `engine-explorer.tsx` - Removed `swagger-ui.css` import from `_app.tsx` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
3ffad1a
3 months ago
by jnsdls
ResourcesHomePricingDocsBlogGitHubChangelog