Skip to content

Fix: BaseWalletConnection doesn't pass thru classname prop - #967

Open
asktree wants to merge 1 commit into
anza-xyz:masterfrom
asktree:master
Open

Fix: BaseWalletConnection doesn't pass thru classname prop#967
asktree wants to merge 1 commit into
anza-xyz:masterfrom
asktree:master

Conversation

@asktree

@asktree asktree commented May 18, 2024

Copy link
Copy Markdown

The BaseWalletConnection component is currently overwriting any className prop. I made it not do this. If this is intentional, then className should not be among its props.

import { WalletIcon } from './WalletIcon.js';

type Props = React.ComponentProps<typeof Button> & {
type Props = ButtonProps & {

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did this type change because eslint/prop-types was complaining that className was not among the props, ostensibly this is a bug in the rule. I'm not sure this prop-types rule does anything if you're using strict ts anyway.

@ayushrungta8

Copy link
Copy Markdown

Is this planned to be fixed in a release soon? I see its almost a year old

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants