-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: wallet connection UI on the submit page (#720)
part of #703 wagmi's `useReconnect` hook doesn't do what we assumed, and as we're already using `useAutoReconnect` we'll basically never need it. Instead for triggering a full wallet reconnect, we can simply pop open the connectkit modal. --------- Co-authored-by: Jan-Felix <[email protected]>
- Loading branch information
Showing
9 changed files
with
71 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Labeled, PrimaryButton } from '@zodiac/ui' | ||
import { LaunchConnectKit, type OnConnectArgs } from './LaunchConnectKit' | ||
|
||
type Props = { | ||
onConnect?: (args: OnConnectArgs) => void | ||
} | ||
|
||
export const EmptyAccount = ({ onConnect }: Props) => { | ||
return ( | ||
<LaunchConnectKit onConnect={onConnect}> | ||
{({ show }) => ( | ||
<Labeled label="Pilot Account"> | ||
<PrimaryButton onClick={show}>Connect wallet</PrimaryButton> | ||
</Labeled> | ||
)} | ||
</LaunchConnectKit> | ||
) | ||
} |
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