Skip to content

Commit

Permalink
fix: remove unused message (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkasany authored Jan 11, 2024
1 parent 0d69a01 commit aa67d6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/soft-tables-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ant-design/web3': patch
---

fix: remove unused message
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useContext } from 'react';
import { Avatar, Button, List, message } from 'antd';
import { Avatar, Button, List } from 'antd';

import { connectModalContext } from '../context';
import type { ConnectModalProps } from '../interface';
Expand All @@ -9,13 +9,11 @@ export type GetWalletPanelProps = Pick<ConnectModalProps, 'walletList'>;

const GetWalletPanel: React.FC<GetWalletPanelProps> = (props) => {
const { walletList = [] } = props;
const [, contextHolder] = message.useMessage();
const { prefixCls, updateSelectedWallet, updatePanelRoute, localeMessage } =
useContext(connectModalContext);

const list = (
<>
{contextHolder}
<div className={`${prefixCls}-list`}>
<List
itemLayout="horizontal"
Expand Down

0 comments on commit aa67d6e

Please sign in to comment.