Skip to content

Commit

Permalink
Merge pull request #60 from hyperlane-xyz/3.7.0
Browse files Browse the repository at this point in the history
Updgrade to 3.7.0 libs
  • Loading branch information
jmrossy authored Feb 12, 2024
2 parents 554558d + 2ba5c89 commit 7224333
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 313 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@hyperlane-xyz/explorer",
"description": "An interchain explorer for the Hyperlane protocol and network.",
"version": "3.1.4",
"version": "3.7.0",
"author": "J M Rossy",
"dependencies": {
"@headlessui/react": "^1.7.17",
"@hyperlane-xyz/sdk": "3.1.4",
"@hyperlane-xyz/utils": "3.1.4",
"@hyperlane-xyz/widgets": "3.1.4",
"@hyperlane-xyz/sdk": "3.7.0",
"@hyperlane-xyz/utils": "3.7.0",
"@hyperlane-xyz/widgets": "3.7.0",
"@metamask/jazzicon": "https://github.com/jmrossy/jazzicon#7a8df28974b4e81129bfbe3cab76308b889032a6",
"@rainbow-me/rainbowkit": "0.12.16",
"@tanstack/react-query": "^4.24.10",
Expand Down
8 changes: 2 additions & 6 deletions src/components/icons/ChainLogo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@ import { ChainLogo as ChainLogoInner } from '@hyperlane-xyz/widgets';
import { getChainName } from '../../features/chains/utils';
import { useMultiProvider } from '../../features/providers/multiProvider';

// TODO widget lib for new chainid type
type Props = Omit<ComponentProps<typeof ChainLogoInner>, 'chainId'> & { chainId: number | string };

export function ChainLogo(props: Props) {
export function ChainLogo(props: ComponentProps<typeof ChainLogoInner>) {
const { chainName, chainId, ...rest } = props;
const multiProvider = useMultiProvider();
const name = chainName || getChainName(multiProvider, props.chainId);
const chainIdNumber = typeof chainId === 'number' ? chainId : undefined;
return <ChainLogoInner {...rest} chainName={name} chainId={chainIdNumber} />;
return <ChainLogoInner {...rest} chainName={name} chainId={chainId} />;
}
Loading

0 comments on commit 7224333

Please sign in to comment.