-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Add OKX wallet info * chore: run test and changeset * fix: add changeset * fix: add test * chore: add OKXWallet use demo * fix: change use demo * fix: edit changeset --------- Co-authored-by: lk419649 <[email protected]>
- Loading branch information
1 parent
79a91ff
commit 77615f9
Showing
12 changed files
with
221 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@ant-design/web3-assets': minor | ||
'@ant-design/web3-icons': minor | ||
'@ant-design/web3-wagmi': minor | ||
--- | ||
|
||
feat: Add OKX wallet info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import type { WalletMetadata } from '@ant-design/web3-common'; | ||
import { ChromeCircleColorful, OkxWalletColorful } from '@ant-design/web3-icons'; | ||
|
||
export const metadata_OkxWallet: WalletMetadata = { | ||
icon: <OkxWalletColorful />, | ||
name: 'OkxWallet', | ||
remark: 'Okx Wallet', | ||
app: { | ||
link: 'https://www.okx.com/download', | ||
}, | ||
extensions: [ | ||
{ | ||
key: 'Chrome', | ||
browserIcon: <ChromeCircleColorful />, | ||
browserName: 'Chrome', | ||
link: 'https://chromewebstore.google.com/detail/mcohilncbfahbmgdjkbpemcciiolgcge', | ||
description: 'Access your wallet right from your favorite web browser.', | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import * as React from 'react'; | ||
import AntdIcon from '@ant-design/icons'; | ||
import { type IconBaseProps } from '@ant-design/icons/lib/components/Icon'; | ||
import { ConfigProvider } from 'antd'; | ||
import classnames from 'classnames'; | ||
|
||
import SVGComponent from '../svgs/okx-colorful.svg'; | ||
|
||
export const OkxWalletColorful = React.forwardRef<HTMLSpanElement, IconBaseProps>((props, ref) => { | ||
const { getPrefixCls } = React.useContext(ConfigProvider.ConfigContext); | ||
const prefixCls = getPrefixCls('web3-icon-okx-colorful'); | ||
return ( | ||
<AntdIcon | ||
{...props} | ||
className={classnames(prefixCls, props.className)} | ||
ref={ref} | ||
component={SVGComponent} | ||
/> | ||
); | ||
}); | ||
OkxWalletColorful.displayName = 'OkxWalletColorful'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.