-
-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: links to projects other chain instances + multichain surplus (#…
- Loading branch information
1 parent
950d3d1
commit ec6d29a
Showing
21 changed files
with
258 additions
and
130 deletions.
There are no files selected for viewing
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 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
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,31 @@ | ||
import Image from "next/image"; | ||
import { JBChainId } from "juice-sdk-react"; | ||
import { NETWORKS } from "constants/networks"; | ||
|
||
const chainIdToLogo: Record<number, string> = { | ||
1: "/assets/images/chain-logos/mainnet.svg", | ||
11155111: "/assets/images/chain-logos/mainnet.svg", | ||
42161: "/assets/images/chain-logos/arbitrum.svg", | ||
421614: "/assets/images/chain-logos/arbitrum.svg", | ||
11155420: "/assets/images/chain-logos/optimism.svg", | ||
84532: "/assets/images/chain-logos/base.svg", | ||
}; | ||
|
||
export const ChainLogo = ({ | ||
chainId, | ||
width, | ||
height, | ||
}: { | ||
chainId: JBChainId; | ||
width?: number; | ||
height?: number; | ||
}) => { | ||
return ( | ||
<Image | ||
src={chainIdToLogo[chainId]} | ||
alt={`${NETWORKS[chainId].label} Logo`} | ||
width={width ?? 20} | ||
height={height ?? 20} | ||
/> | ||
); | ||
}; |
25 changes: 12 additions & 13 deletions
25
src/packages/v4/components/Create/components/pages/ProjectDetails/ProjectChainSelect.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
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
22 changes: 11 additions & 11 deletions
22
src/packages/v4/components/Create/hooks/useLoadInitialStateFromQuery.ts
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
Oops, something went wrong.