Skip to content

Commit

Permalink
email waas
Browse files Browse the repository at this point in the history
  • Loading branch information
SamueleA committed May 6, 2024
1 parent 7dea834 commit d5fc3ab
Show file tree
Hide file tree
Showing 6 changed files with 280 additions and 267 deletions.
1 change: 1 addition & 0 deletions examples/react-waas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"preview": "vite preview"
},
"dependencies": {
"@0xsequence/design-system": "^1.5.0",
"0xsequence": "^1.9.26",
"@0xsequence/kit": "workspace:*",
"@tanstack/react-query": "^5.32.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/react-waas/tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"allowSyntheticDefaultImports": true,
"strict": true
},
"include": ["vite.config.ts"]
"include": ["vite.config.js"]
}
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/connectors/src/defaultConnectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const getDefaultWaasConnectors = ({
enableConfirmationModal
}: GetDefaultWaasConnectors): CreateConnectorFn[] => {
const wallets: any[] = [
// emailWaas({ projectAccessKey, waasConfigKey, enableConfirmationModal, network: defaultChainId }),
emailWaas({ projectAccessKey, waasConfigKey, enableConfirmationModal, network: defaultChainId }),
coinbaseWallet({
appName
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,16 @@ export const ConnectWalletContent = (props: ConnectWalletContentProps) => {

<Box marginTop="6">
{emailConnector && showEmailInput && (
<form onSubmit={onConnectInlineEmail}>
<TextInput onChange={onChangeEmail} value={email} name="email" placeholder="Enter email" data-1p-ignore />
<Box as="form" onSubmit={onConnectInlineEmail}>
<Box width="full">
<TextInput
onChange={onChangeEmail}
value={email}
name="email"
placeholder="Enter email"
data-1p-ignore
/>
</Box>
<Box alignItems="center" justifyContent="center" marginTop="4">
{!emailAuthInProgress && (
<Button
Expand All @@ -248,7 +256,7 @@ export const ConnectWalletContent = (props: ConnectWalletContentProps) => {
)}
{emailAuthInProgress && <Spinner />}
</Box>
</form>
</Box>
)}

{socialAuthConnectors.length > 0 && (
Expand Down
Loading

0 comments on commit d5fc3ab

Please sign in to comment.