-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sero/wc v2 #1735
Merged
Merged
Sero/wc v2 #1735
Changes from 12 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
b6da6a2
wc/wagmi/viem
Seroxdesign 7243144
replace
Seroxdesign 1d15db1
profile
Seroxdesign 8a51336
replace context (,:
Seroxdesign 429d8e9
testing, clean up
Seroxdesign fa93b48
wallet connect deploy
Seroxdesign 7690bef
connect
Seroxdesign 6b84bd6
Merge branch 'develop' into sero/wc-v2
Seroxdesign fa94d84
remove type slive
Seroxdesign 423babe
podcast
Seroxdesign 5579d53
podcast
Seroxdesign bfb627b
heck yeah
Seroxdesign d6bdda4
feat: connect button
Udit-takkar d60a7c8
chore
Udit-takkar fb878c5
trying siwe, network switch
Seroxdesign 5b53d14
redirect
Seroxdesign 52f1d60
prettying, cleaning up SIWE endpoints, & passing linting 🕊
dysbulic 72087f4
switching minting to Optimism & converting `ethers` to `wagmi` for co…
dysbulic 973a442
simplified onboarding & successfully minted ⛲
dysbulic a41e579
typo
Seroxdesign a00c673
Merge branch 'develop' into sero/wc-v2
Seroxdesign 913aae0
api key
Seroxdesign File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,79 +1,7 @@ | ||
import { | ||
Button, | ||
MetaButton, | ||
Spinner, | ||
Tooltip, | ||
useBreakpointValue, | ||
useToast, | ||
} from '@metafam/ds'; | ||
import { useWeb3 } from 'lib/hooks'; | ||
import React from 'react'; | ||
|
||
export const LandingConnectButton = ({ isIconStyle = false, ...props }) => { | ||
const { | ||
connect, | ||
disconnect, | ||
connected, | ||
connecting, | ||
address, | ||
} = useWeb3(); | ||
const spinnerSize = useBreakpointValue({ base: 'sm', '2xl': 'md' }); | ||
const toast = useToast(); | ||
import { ConnectKitButton } from "connectkit"; | ||
import React from 'react'; | ||
|
||
return ( | ||
<Tooltip | ||
label={ | ||
connected | ||
? 'Change to Polygon network 👆' | ||
: `${connected ? 'Disconnect' : 'Connect'} wallet` | ||
} | ||
hasArrow | ||
placement="bottom" | ||
> | ||
{!isIconStyle ? ( | ||
<Button | ||
onClick={connected ? disconnect : connect} | ||
variant="ghost" | ||
aria-label="Connect to Web3 wallet" | ||
isDisabled={connecting} | ||
size={'xl'} | ||
> | ||
{connecting && <Spinner size="sm" />} | ||
{!connecting && connected ? 'Connected' : 'Connect'} | ||
</Button> | ||
) : ( | ||
<Button | ||
onClick={connected ? disconnect : connect} | ||
variant="ghost" | ||
display="inline-flex" | ||
alignItems="center" | ||
fontWeight="normal" | ||
borderRadius="inherit inherit 0 0" | ||
opacity={0.3} | ||
px={{ base: 1, xl: 2 }} | ||
sx={{ | ||
'&:hover': { | ||
backgroundColor: 'transparent', | ||
color: 'var(--chakra-colors-landing300)', | ||
opacity: 1, | ||
svg: { | ||
filter: 'drop-shadow(0 0 10px var(--chakra-colors-landing300))', | ||
}, | ||
}, | ||
}} | ||
{...props} | ||
> | ||
{connecting ? ( | ||
<Spinner size={spinnerSize} /> | ||
) : ( | ||
<MetaButton backgroundColor={'#0000000'}> | ||
{ | ||
address ? `${address.slice(0, 4)}...${address.slice(address.length - 4, address.length)}` : "connect" | ||
} | ||
</MetaButton> | ||
)} | ||
</Button> | ||
)} | ||
</Tooltip> | ||
export const LandingConnectButton = ({ isIconStyle = false, ...props }) => ( | ||
<ConnectKitButton /> | ||
); | ||
}; |
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add this .env variable in .env.sample