-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rework steps a bit for better dismissing modal
- Loading branch information
Showing
9 changed files
with
122 additions
and
91 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
import { useConnectorClient } from "wagmi"; | ||
import { useAccount, useConnectorClient } from "wagmi"; | ||
import { ConnectWallet } from "./ConnectWallet"; | ||
import { ConnectedSteps } from "./onboarding/ConnectedSteps"; | ||
import { useEntryKitConfig } from "./EntryKitConfigProvider"; | ||
import { useRef } from "react"; | ||
|
||
export function AccountModalContent() { | ||
const { chainId } = useEntryKitConfig(); | ||
const userClient = useConnectorClient({ chainId }); | ||
const initialAddress = useRef(useAccount().address); | ||
|
||
if (userClient.status !== "success") { | ||
return <ConnectWallet />; | ||
} | ||
|
||
return <ConnectedSteps userClient={userClient.data} />; | ||
return <ConnectedSteps userClient={userClient.data} initialAddress={initialAddress.current} />; | ||
} |
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
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 was deleted.
Oops, something went wrong.