-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multichain integrations on pool detail page (#2143)
* Add blockexplorer urls * Expose network icon from fabric * Add multichain to key metrics * Remove comment
- Loading branch information
1 parent
f2a9a88
commit e375bf5
Showing
5 changed files
with
78 additions
and
6 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
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
14 changes: 14 additions & 0 deletions
14
centrifuge-react/src/components/WalletProvider/NetworkIcon.tsx
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,14 @@ | ||
import * as React from 'react' | ||
import { Logo } from './SelectButton' | ||
import type { State } from './types' | ||
import { useNetworkIcon } from './utils' | ||
|
||
export type NetworkIconProps = { | ||
network: Exclude<State['walletDialog']['network'], null> | ||
size?: string | number | ||
disabled?: boolean | ||
} | ||
|
||
export function NetworkIcon({ network, size = 'iconRegular' }: NetworkIconProps) { | ||
return <Logo icon={useNetworkIcon(network)} size={size} /> | ||
} |
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