Fun picker improvements

This commit is contained in:
Jamie Kyle
2025-03-26 12:35:32 -07:00
committed by GitHub
parent 427f91f903
commit b0653d06fe
142 changed files with 3581 additions and 1280 deletions

View File

@@ -31,6 +31,7 @@ import {
BackfillFailureModal,
type DataPropsType as BackfillFailureModalPropsType,
} from './BackfillFailureModal';
import type { SmartDraftGifMessageSendModalProps } from '../state/smart/DraftGifMessageSendModal';
// NOTE: All types should be required for this component so that the smart
// component gives you type errors when adding/removing props.
@@ -80,6 +81,9 @@ export type PropsType = {
// DeleteMessageModal
deleteMessagesProps: DeleteMessagesPropsType | undefined;
renderDeleteMessagesModal: () => JSX.Element;
// DraftGifMessageSendModal
draftGifMessageSendModalProps: SmartDraftGifMessageSendModalProps | null;
renderDraftGifMessageSendModal: () => JSX.Element;
// ForwardMessageModal
forwardMessagesProps: ForwardMessagesPropsType | undefined;
renderForwardMessagesModal: () => JSX.Element;
@@ -180,6 +184,9 @@ export function GlobalModalContainer({
// DeleteMessageModal
deleteMessagesProps,
renderDeleteMessagesModal,
// DraftGifMessageSendModal
draftGifMessageSendModalProps,
renderDraftGifMessageSendModal,
// ForwardMessageModal
forwardMessagesProps,
renderForwardMessagesModal,
@@ -300,6 +307,10 @@ export function GlobalModalContainer({
return renderDeleteMessagesModal();
}
if (draftGifMessageSendModalProps) {
return renderDraftGifMessageSendModal();
}
if (messageRequestActionsConfirmationProps) {
return renderMessageRequestActionsConfirmation();
}