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
@@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
import { memo, useRef } from "react";
|
||||
import { useVisualViewportHeight } from "../../../hooks";
|
||||
import { CreateView } from "./Create.view";
|
||||
import type { CreateProps } from "./Create.types";
|
||||
import { useCreateModalA11y } from "./useCreateModalA11y";
|
||||
@@ -43,9 +44,13 @@ const CreateContainer = memo<CreateProps>(
|
||||
kebabMenuAriaLabel,
|
||||
kebabMenuItems,
|
||||
belowCard,
|
||||
presentation = "dialog",
|
||||
}) => {
|
||||
const createRef = useRef<HTMLDivElement>(null);
|
||||
const overlayRef = useRef<HTMLDivElement>(null);
|
||||
const viewportHeight = useVisualViewportHeight(
|
||||
isOpen && presentation === "sheet",
|
||||
);
|
||||
|
||||
useCreateModalA11y(isOpen, onClose, createRef);
|
||||
|
||||
@@ -86,6 +91,8 @@ const CreateContainer = memo<CreateProps>(
|
||||
kebabMenuAriaLabel={kebabMenuAriaLabel}
|
||||
kebabMenuItems={kebabMenuItems}
|
||||
belowCard={belowCard}
|
||||
presentation={presentation}
|
||||
viewportHeight={viewportHeight}
|
||||
/>
|
||||
);
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user