-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
796 additions
and
501 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
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 @@ | ||
// Your tests |
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
# Template for NextJS environment variables. | ||
|
||
# For local development, copy this file, rename it to .env.local, and fill in the values. | ||
# When deploying live, you'll need to store the vars in Vercel/System config. | ||
|
||
# If not set, we provide default values (check `scaffold.config.ts`) so developers can start prototyping out of the box, | ||
# but we recommend getting your own API Keys for Production Apps. | ||
|
||
# To access the values stored in this env file you can use: process.env.VARIABLENAME | ||
# You'll need to prefix the variables names with NEXT_PUBLIC_ if you want to access them on the client side. | ||
# More info: https://nextjs.org/docs/pages/building-your-application/configuring/environment-variables | ||
NEXT_PUBLIC_ALCHEMY_API_KEY= | ||
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID= |
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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
import { AvatarComponent } from "@rainbow-me/rainbowkit"; | ||
import Blockies from "react-blockies"; | ||
import { blo } from "blo"; | ||
|
||
// Custom Avatar for RainbowKit | ||
export const BlockieAvatar: AvatarComponent = ({ address, ensImage, size }) => | ||
ensImage ? ( | ||
// Don't want to use nextJS Image here (and adding remote patterns for the URL) | ||
// eslint-disable-next-line | ||
<img className="rounded-full" src={ensImage} width={size} height={size} alt={`${address} avatar`} /> | ||
) : ( | ||
<Blockies className="rounded-full" seed={address?.toLowerCase() as string} scale={size > 30 ? 10 : 3.75} /> | ||
); | ||
export const BlockieAvatar: AvatarComponent = ({ address, ensImage, size }) => ( | ||
// Don't want to use nextJS Image here (and adding remote patterns for the URL) | ||
// eslint-disable-next-line @next/next/no-img-element | ||
<img | ||
className="rounded-full" | ||
src={ensImage || blo(address as `0x${string}`)} | ||
width={size} | ||
height={size} | ||
alt={`${address} avatar`} | ||
/> | ||
); |
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.