generated from z0r0z/zenplate
-
Notifications
You must be signed in to change notification settings - Fork 7
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
1 parent
f5c1b4f
commit 05e05ec
Showing
6 changed files
with
767 additions
and
657 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
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,18 +1,15 @@ | ||
'use client' | ||
import { useAccount } from "wagmi" | ||
"use client"; | ||
import { useAccount } from "wagmi"; | ||
|
||
const versions: { | ||
[key: number]: string | ||
[key: number]: string; | ||
} = { | ||
1: "1.0.0", | ||
42161: "1.0.1 (nightly)", | ||
} | ||
1: "1.0.0", | ||
42161: "1.0.1 (nightly)", | ||
}; | ||
|
||
export const Version = () => { | ||
const { chain } = useAccount(); | ||
|
||
return <span> | ||
{`[ Version ${versions[chain ? chain.id : 1]} ]`} | ||
</span> | ||
} | ||
const { chain } = useAccount(); | ||
|
||
return <span>{`[ Version ${versions[chain ? chain.id : 1]} ]`}</span>; | ||
}; |
Oops, something went wrong.