Attachment backfill

This commit is contained in:
Fedor Indutny
2025-03-24 23:34:58 -07:00
committed by GitHub
parent c94849d3a1
commit b3c7b48d1c
40 changed files with 1793 additions and 357 deletions

View File

@@ -27,6 +27,10 @@ import {
TapToViewNotAvailableModal,
type DataPropsType as TapToViewNotAvailablePropsType,
} from './TapToViewNotAvailableModal';
import {
BackfillFailureModal,
type DataPropsType as BackfillFailureModalPropsType,
} from './BackfillFailureModal';
// NOTE: All types should be required for this component so that the smart
// component gives you type errors when adding/removing props.
@@ -124,6 +128,9 @@ export type PropsType = {
// TapToViewNotAvailableModal
tapToViewNotAvailableModalProps: TapToViewNotAvailablePropsType | undefined;
hideTapToViewNotAvailableModal: () => void;
// BackfillFailureModal
backfillFailureModalProps: BackfillFailureModalPropsType | undefined;
hideBackfillFailureModal: () => void;
// UserNotFoundModal
hideUserNotFoundModal: () => unknown;
userNotFoundModalState: UserNotFoundModalStateType | undefined;
@@ -214,6 +221,9 @@ export function GlobalModalContainer({
// TapToViewNotAvailableModal
tapToViewNotAvailableModalProps,
hideTapToViewNotAvailableModal,
// BackfillFailureModal
backfillFailureModalProps,
hideBackfillFailureModal,
// UserNotFoundModal
hideUserNotFoundModal,
userNotFoundModalState,
@@ -394,5 +404,15 @@ export function GlobalModalContainer({
);
}
if (backfillFailureModalProps != null) {
return (
<BackfillFailureModal
i18n={i18n}
onClose={hideBackfillFailureModal}
{...backfillFailureModalProps}
/>
);
}
return null;
}