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

CBIIT / crdc-datahub-ui / 15856667353

24 Jun 2025 04:55PM UTC coverage: 70.795% (-0.009%) from 70.804%
15856667353

push

github

web-flow
Merge pull request #745 from CBIIT/CRDCDH-2816

CRDCDH-2816 ESLint Rule Updates

3530 of 3890 branches covered (90.75%)

Branch coverage included in aggregate %.

555 of 705 new or added lines in 157 files covered. (78.72%)

20 existing lines in 16 files now uncovered.

22470 of 32836 relevant lines covered (68.43%)

110.86 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

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

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

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