Show Login and Ask an organizer sent and error states.
Connect the live modals to the drawn sent, expired, invalid-email, and send-failed screens, pin the phone footer above the keyboard, and send the light login email.
This commit is contained in:
1 parent
44010c7b73
commit
27d74e510c
29 files changed
+771
-281
No files matched your search
@@ -109,7 +109,7 @@ export const HeaderOverlayBlurred = {
|
||||
ariaLabelledBy="login-modal-heading"
|
||||
>
|
||||
<Suspense fallback={<p className="p-6 text-small-paragraph">Loading…</p>}>
|
||||
<LoginForm />
|
||||
<LoginForm onClose={() => {}} />
|
||||
</Suspense>
|
||||
</Login>
|
||||
</FakeMarketingPageBehindOverlay>
|
||||
@@ -154,7 +154,53 @@ export const FullPageRouteSolid = {
|
||||
}
|
||||
>
|
||||
<Suspense fallback={<p className="p-6 text-small-paragraph">Loading…</p>}>
|
||||
<LoginForm />
|
||||
<LoginForm onClose={() => {}} />
|
||||
</Suspense>
|
||||
</Login>
|
||||
),
|
||||
};
|
||||
|
||||
export const LinkExpired = {
|
||||
name: "Link expired",
|
||||
parameters: {
|
||||
nextjs: {
|
||||
navigation: {
|
||||
pathname: "/login",
|
||||
query: { error: "expired_link" },
|
||||
},
|
||||
},
|
||||
docs: {
|
||||
description: {
|
||||
story:
|
||||
"Expired or used login links land on this heading, with Send a new link.",
|
||||
},
|
||||
},
|
||||
},
|
||||
decorators: [
|
||||
(Story: () => React.ReactNode) => (
|
||||
<div className="min-h-[100dvh] bg-[var(--color-surface-invert-brand-primary)]">
|
||||
<Story />
|
||||
</div>
|
||||
),
|
||||
],
|
||||
render: () => (
|
||||
<Login
|
||||
isOpen
|
||||
onClose={() => {}}
|
||||
backdropVariant="solid"
|
||||
usePortal={false}
|
||||
ariaLabelledBy="login-modal-heading"
|
||||
belowCard={
|
||||
<a
|
||||
href="/"
|
||||
className="text-center text-small-paragraph text-[var(--color-content-invert-tertiary)] hover:opacity-90"
|
||||
>
|
||||
{backToHome}
|
||||
</a>
|
||||
}
|
||||
>
|
||||
<Suspense fallback={<p className="p-6 text-small-paragraph">Loading…</p>}>
|
||||
<LoginForm onClose={() => {}} />
|
||||
</Suspense>
|
||||
</Login>
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user