-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: APP-163 custodial wallet design implementation (#2470)
Co-authored-by: Ralph <“[email protected]>
- Loading branch information
Showing
11 changed files
with
1,570 additions
and
1,585 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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 |
---|---|---|
|
@@ -5,37 +5,76 @@ import { Title } from 'web-components/src/components/typography'; | |
|
||
import { UserAccountSettings } from './UserAccountSettings'; | ||
|
||
const meta: Meta<typeof UserAccountSettings> = { | ||
title: 'Marketplace/Organisms/UserAccountSettings', | ||
component: UserAccountSettings, | ||
args: { | ||
email: '[email protected]', | ||
socialProviders: [ | ||
{ | ||
name: 'Google', | ||
connect: action('connect google'), | ||
}, | ||
{ | ||
name: 'LinkedIn', | ||
disconnect: async () => { | ||
action('disconnect linkedin')(); | ||
}, | ||
}, | ||
], | ||
walletProvider: { | ||
address: 'regenfoobar3792723djghsdg', | ||
const args = { | ||
email: '', | ||
socialProviders: [ | ||
{ | ||
name: 'Google', | ||
connect: action('connect google'), | ||
}, | ||
{ | ||
name: 'LinkedIn', | ||
disconnect: async () => { | ||
action('disconnect wallet')(); | ||
action('disconnect linkedin')(); | ||
}, | ||
}, | ||
], | ||
walletProvider: { | ||
address: 'regenfoobar3792723djghsdg', | ||
disconnect: async () => { | ||
action('disconnect wallet')(); | ||
}, | ||
}, | ||
custodialAddress: 'mock-regen-custodial-address', | ||
emailConfirmationData: { | ||
isConfirmationModalOpen: false, | ||
email: '', | ||
emailModalError: '', | ||
resendTimeLeft: null, | ||
onConfirmationModalClose: action('close confirmation modal'), | ||
onMailCodeChange: async (passcode: string) => { | ||
action('mail code change')(passcode); | ||
}, | ||
onResendPasscode: async () => { | ||
action('resend passcode')(); | ||
return Promise.resolve(); | ||
}, | ||
onEmailSubmit: async ({ | ||
email, | ||
callback, | ||
}: { | ||
email: string; | ||
callback?: () => void; | ||
}) => { | ||
action('email submit')({ email, callback }); | ||
return Promise.resolve(); | ||
}, | ||
isConnectedEmailErrorModalOpen: false, | ||
onConnectedEmailErrorModalClose: action( | ||
'close connected email error modal', | ||
), | ||
}, | ||
}; | ||
|
||
const meta: Meta<typeof UserAccountSettings> = { | ||
title: 'Marketplace/Organisms/UserAccountSettings', | ||
component: UserAccountSettings, | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof UserAccountSettings>; | ||
|
||
export const Default: Story = {}; | ||
|
||
Default.args = args; | ||
|
||
export const WithEmail: Story = {}; | ||
|
||
WithEmail.args = { | ||
...args, | ||
email: '[email protected]', | ||
}; | ||
|
||
export const Width375: Story = { | ||
name: 'Wrapped in a 375px mobile container', | ||
render: args => ( | ||
|
@@ -50,6 +89,8 @@ export const Width375: Story = { | |
), | ||
}; | ||
|
||
Width375.args = args; | ||
|
||
export const Width560: Story = { | ||
name: 'Wrapped in a 560px container', | ||
render: args => ( | ||
|
@@ -63,3 +104,5 @@ export const Width560: Story = { | |
</div> | ||
), | ||
}; | ||
|
||
Width560.args = args; |
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.