-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding ETH on BNB Chain [SLT-398] #3338
Changes from all commits
2acfada
2ad4f4a
6852b2b
52902fd
b80adfc
45ef845
2b509c1
4c84de7
d1a73c9
7de1c18
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,7 +145,7 @@ export function TransactionPopoverContainer({ | |
}) { | ||
return ( | ||
<Transition | ||
as={Fragment} | ||
as={Fragment as any} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid using The type assertion Consider one of these type-safe alternatives: - as={Fragment as any}
+ as={Fragment} Or if you're facing type compatibility issues with @headlessui/react, properly type it using: import { TransitionRootProps } from '@headlessui/react'
type AsProps = TransitionRootProps['as']
// Then use it as
as={Fragment as AsProps} |
||
enter="transition ease-out duration-200" | ||
enterFrom="opacity-0 translate-y-1" | ||
enterTo="opacity-100 translate-y-0" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -118,7 +118,7 @@ export function LandingNav() { | |
</div> | ||
|
||
<Transition | ||
as={Fragment} | ||
as={Fragment as any} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid using The type assertions Consider these alternatives:
import { Transition } from '@headlessui/react'
import type { Fragment } from 'react'
// Use proper type
as={Fragment as React.ComponentType}
npm info @headlessui/react version
npm info @types/react version
npm update @headlessui/react @types/react Also applies to: 164-164 |
||
enter="duration-100 ease-out" | ||
enterFrom=" opacity-0" | ||
enterTo=" opacity-100" | ||
|
@@ -161,7 +161,7 @@ export function PopoverPanelContainer({ | |
}) { | ||
return ( | ||
<Transition | ||
as={Fragment} | ||
as={Fragment as any} | ||
enter="transition ease-out duration-200" | ||
enterFrom="opacity-0 translate-y-1" | ||
enterTo="opacity-100 translate-y-0" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move @codecov/rollup-plugin to devDependencies
The @codecov/rollup-plugin is a development tool for code coverage reporting and should be in devDependencies rather than dependencies. This change will prevent the package from being installed in production environments where it's not needed.
Apply this diff to fix the dependency location:
📝 Committable suggestion
💡 Codebase verification
Code coverage plugin addition appears unrelated to current changes
The addition of
@codecov/rollup-plugin
to synapse-constants package appears unnecessary as:Consider:
@codecov/rollup-plugin
dependency as it's not being used🔗 Analysis chain
Verify the relevance of code coverage changes
The addition of the code coverage plugin appears unrelated to the PR's objective of adding ETH on BNB Chain. Could you clarify why these changes are included in this PR? Consider moving them to a separate PR focused on testing infrastructure improvements.
Let me gather more specific information about code coverage related changes.
Let me check the specific rollup configuration changes in the synapse-constants package.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 6964
Script:
Length of output: 363
Script:
Length of output: 111