• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

CBIIT / crdc-datahub-ui / 16006182009

01 Jul 2025 05:32PM UTC coverage: 62.703% (-8.6%) from 71.278%
16006182009

Pull #756

github

web-flow
Merge pull request #755 from CBIIT/revert-omb-date

revert: OMB expiration update
Pull Request #756: Sync 3.4.0 with 3.3.0

3560 of 6102 branches covered (58.34%)

Branch coverage included in aggregate %.

4920 of 7422 relevant lines covered (66.29%)

227.7 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/components/Questionnaire/SubmitFormDialog.tsx
1
import { LoadingButton } from "@mui/lab";
2
import { Button, DialogProps, styled } from "@mui/material";
3
import { FC } from "react";
4
import Dialog from "../GenericDialog";
5

6
const StyledSubmitLoadingButton = styled(LoadingButton)(() => ({
×
7
  color: "#0B7F99",
8
}));
9

10
type Props = {
11
  title?: string;
12
  message?: string;
13
  disableActions?: boolean;
14
  loading?: boolean;
15
  onCancel?: () => void;
16
  onSubmit?: () => void;
17
  onDiscard?: () => void;
18
} & DialogProps;
19

20
const SubmitFormDialog: FC<Props> = ({
×
21
  title,
22
  message,
23
  disableActions,
24
  loading,
25
  onCancel,
26
  onSubmit,
27
  onDiscard,
28
  open,
29
  onClose,
30
  ...rest
31
}) => (
32
  <Dialog
×
33
    open={open}
34
    onClose={onClose}
35
    title={title || "Submit Request"}
×
36
    message={
37
      message ||
×
38
      "Once your submission request is submitted for review, no further changes can be made. Are you sure you want to proceed?"
39
    }
40
    actions={
41
      <>
42
        <Button onClick={onCancel} disabled={disableActions}>
43
          Cancel
44
        </Button>
45
        <StyledSubmitLoadingButton
46
          onClick={onSubmit}
47
          loading={loading}
48
          disabled={disableActions}
49
          autoFocus
50
        >
51
          Confirm to Submit
52
        </StyledSubmitLoadingButton>
53
      </>
54
    }
55
    {...rest}
56
  />
57
);
58

59
export default SubmitFormDialog;
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc