import { DialogClose } from "@radix-ui/react-dialog"; import { Form, useNavigation } from "@remix-run/react"; import { Button } from "~/components/primitives/Buttons"; import { DialogContent, DialogHeader } from "~/components/primitives/Dialog"; import { FormButtons } from "~/components/primitives/FormButtons"; import { Paragraph } from "~/components/primitives/Paragraph"; import { SpinnerWhite } from "~/components/primitives/Spinner"; type CheckBatchCompletionDialogProps = { batchId: string; redirectPath: string; }; export function CheckBatchCompletionDialog({ batchId, redirectPath, }: CheckBatchCompletionDialogProps) { const navigation = useNavigation(); const formAction = `/resources/batches/${batchId}/check-completion`; const isLoading = navigation.formAction === formAction; return ( Try and resume batch
In rare cases, parent runs don't continue after child runs have completed. If this doesn't help, please get in touch. We are working on a permanent fix for this. } cancelButton={ } />
); }