-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: connect button and add some icons (#33)
* chore: format icons svg to react component * feat(icons): fomat icons in svg * ci(icons): fix ci issue by add an alias * chore(icons): ci issues * feat(common): add chains config * feat(icons): more filled icons * refactor(web3): connect button * refactor(web3): connect button * ci(web3): fix ci issues
- Loading branch information
1 parent
9d19d24
commit 61df44d
Showing
38 changed files
with
472 additions
and
196 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"conventionalCommits.scopes": ["workspace", "web3", "icons"] | ||
"conventionalCommits.scopes": ["workspace", "web3", "icons", "common"] | ||
} |
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,31 @@ | ||
import type { Chain } from './types'; | ||
|
||
export const mainnet: Chain = { | ||
id: 1, | ||
name: 'Ethereum', | ||
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 }, | ||
}; | ||
|
||
export const polygon: Chain = { | ||
id: 137, | ||
name: 'Polygon', | ||
nativeCurrency: { name: 'MATIC', symbol: 'MATIC', decimals: 18 }, | ||
}; | ||
|
||
export const bsc: Chain = { | ||
id: 56, | ||
name: 'BNB Smart Chain', | ||
nativeCurrency: { decimals: 18, name: 'BNB', symbol: 'BNB' }, | ||
}; | ||
|
||
export const arbitrum: Chain = { | ||
id: 42_161, | ||
name: 'Arbitrum One', | ||
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 }, | ||
}; | ||
|
||
export const optimism: Chain = { | ||
id: 10, | ||
name: 'OP Mainnet', | ||
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 }, | ||
}; |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export * from './types'; | ||
export * as chains from './chains'; | ||
export * from './wallets/index'; | ||
export * from './providers'; | ||
export * from './utils'; |
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,9 @@ | ||
import * as React from 'react'; | ||
import AntdIcon from '@ant-design/icons'; | ||
import { ReactComponent as SVGComponent } from '../svgs/arbitrum-filled.svg'; | ||
import { type IconBaseProps } from '@ant-design/icons/lib/components/Icon'; | ||
|
||
export const ArbitrumFilled = React.forwardRef<HTMLSpanElement, IconBaseProps>((props, ref) => ( | ||
<AntdIcon {...props} ref={ref} component={SVGComponent} /> | ||
)); | ||
ArbitrumFilled.displayName = 'ArbitrumFilled'; |
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,9 @@ | ||
import * as React from 'react'; | ||
import AntdIcon from '@ant-design/icons'; | ||
import { ReactComponent as SVGComponent } from '../svgs/bitcoin-filled.svg'; | ||
import { type IconBaseProps } from '@ant-design/icons/lib/components/Icon'; | ||
|
||
export const BitcoinFilled = React.forwardRef<HTMLSpanElement, IconBaseProps>((props, ref) => ( | ||
<AntdIcon {...props} ref={ref} component={SVGComponent} /> | ||
)); | ||
BitcoinFilled.displayName = 'BitcoinFilled'; |
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,9 @@ | ||
import * as React from 'react'; | ||
import AntdIcon from '@ant-design/icons'; | ||
import { ReactComponent as SVGComponent } from '../svgs/bsc-filled.svg'; | ||
import { type IconBaseProps } from '@ant-design/icons/lib/components/Icon'; | ||
|
||
export const BSCFilled = React.forwardRef<HTMLSpanElement, IconBaseProps>((props, ref) => ( | ||
<AntdIcon {...props} ref={ref} component={SVGComponent} /> | ||
)); | ||
BSCFilled.displayName = 'BSCFilled'; |
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,9 @@ | ||
import * as React from 'react'; | ||
import AntdIcon from '@ant-design/icons'; | ||
import { ReactComponent as SVGComponent } from '../svgs/ethereum-filled.svg'; | ||
import { type IconBaseProps } from '@ant-design/icons/lib/components/Icon'; | ||
|
||
export const EthereumFilled = React.forwardRef<HTMLSpanElement, IconBaseProps>((props, ref) => ( | ||
<AntdIcon {...props} ref={ref} component={SVGComponent} /> | ||
)); | ||
EthereumFilled.displayName = 'EthereumFilled'; |
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,9 @@ | ||
import * as React from 'react'; | ||
import AntdIcon from '@ant-design/icons'; | ||
import { ReactComponent as SVGComponent } from '../svgs/optimism-filled.svg'; | ||
import { type IconBaseProps } from '@ant-design/icons/lib/components/Icon'; | ||
|
||
export const OptimismFilled = React.forwardRef<HTMLSpanElement, IconBaseProps>((props, ref) => ( | ||
<AntdIcon {...props} ref={ref} component={SVGComponent} /> | ||
)); | ||
OptimismFilled.displayName = 'OptimismFilled'; |
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,9 @@ | ||
import * as React from 'react'; | ||
import AntdIcon from '@ant-design/icons'; | ||
import { ReactComponent as SVGComponent } from '../svgs/polygon-filled.svg'; | ||
import { type IconBaseProps } from '@ant-design/icons/lib/components/Icon'; | ||
|
||
export const PolygonFilled = React.forwardRef<HTMLSpanElement, IconBaseProps>((props, ref) => ( | ||
<AntdIcon {...props} ref={ref} component={SVGComponent} /> | ||
)); | ||
PolygonFilled.displayName = 'PolygonFilled'; |
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.