Skip to content

Commit

Permalink
fix: remove no-unused-vars (#462)
Browse files Browse the repository at this point in the history
* fix: remove no-unused-vars

* docs: add changeset
  • Loading branch information
thinkasany authored Jan 5, 2024
1 parent 2e3af3f commit b575468
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/moody-rabbits-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ant-design/web3': patch
---

fix: remove no-unused-vars
1 change: 1 addition & 0 deletions packages/web3/src/connect-modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export * from './interface';
export const ConnectModal: React.FC<ConnectModalProps> & {
ModalPanel: typeof ModalPanel;
} = (props) => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars, unused-imports/no-unused-vars
const { title, open, footer, onWalletSelected, className, mode, ...restProps } = props;
const { getPrefixCls } = React.useContext(ConfigContext);

Expand Down
1 change: 0 additions & 1 deletion packages/web3/src/connect-modal/style/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export interface ConnectModalToken extends Web3AliasToken {

const resetStyle = (token: ConnectModalToken): CSSInterpolation => {
const { web3ComponentsCls: componentCls } = token;
const isDark = isDarkTheme(token);
return [
{
[`${componentCls}`]: {
Expand Down

0 comments on commit b575468

Please sign in to comment.