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

CBIIT / crdc-datahub-ui / 18789341118

24 Oct 2025 06:57PM UTC coverage: 78.178% (+15.5%) from 62.703%
18789341118

push

github

web-flow
Merge pull request #888 from CBIIT/3.4.0

3.4.0 Release

4977 of 5488 branches covered (90.69%)

Branch coverage included in aggregate %.

8210 of 9264 new or added lines in 257 files covered. (88.62%)

6307 existing lines in 120 files now uncovered.

30203 of 39512 relevant lines covered (76.44%)

213.36 hits per line

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

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

UNCOV
5
import Dialog from "../GenericDialog";
×
6

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

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

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

UNCOV
60
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