-
Notifications
You must be signed in to change notification settings - Fork 356
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
2cbd550
commit 2bdcf30
Showing
5 changed files
with
55 additions
and
116 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
.main { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
justify-content: center; | ||
align-items: center; | ||
padding: 6rem; | ||
gap: 40px; | ||
min-height: 100vh; | ||
} |
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,10 +1,11 @@ | ||
import Connect from '@/components/Connect' | ||
import Connect, { Custom } from '@/components/Connect' | ||
import styles from './page.module.css' | ||
|
||
export default function Home() { | ||
return ( | ||
<main className={styles.main}> | ||
<Connect /> | ||
<Custom/> | ||
</main> | ||
) | ||
} |
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,5 +1,12 @@ | ||
'use client' | ||
|
||
import { useWeb3Modal } from "@web3modal/wagmi/react" | ||
|
||
export default function Connect() { | ||
return <w3m-button /> | ||
} | ||
|
||
export function Custom(){ | ||
const { open } = useWeb3Modal() | ||
return <button onClick={()=>open()} >open modal</button> | ||
} |