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

react-ui-org / react-ui / 12924424190

23 Jan 2025 07:36AM UTC coverage: 92.033% (+0.05%) from 91.979%
12924424190

Pull #583

github

web-flow
Merge baf0d2a5f into 684d5abff
Pull Request #583: Split `RUIProvider` into two

810 of 886 branches covered (91.42%)

Branch coverage included in aggregate %.

17 of 17 new or added lines in 8 files covered. (100.0%)

1 existing line in 1 file now uncovered.

738 of 796 relevant lines covered (92.71%)

71.39 hits per line

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

80.0
/src/components/Modal/ModalContent.jsx
1
import PropTypes from 'prop-types';
2
import React from 'react';
3
import { withGlobalProps } from '../../providers/globalProps';
4
import { transferProps } from '../../utils/transferProps';
5
import { isChildrenEmpty } from '../_helpers/isChildrenEmpty';
6
import styles from './ModalContent.module.scss';
7

8
export const ModalContent = ({
6✔
9
  children,
10
  ...restProps
11
}) => {
12
  if (isChildrenEmpty(children)) {
6!
13
    return null;
×
14
  }
15

16
  return (
6✔
17
    <div
18
      {...transferProps(restProps)}
19
      className={styles.root}
20
    >
21
      {children}
22
    </div>
23
  );
24
};
25

26
ModalContent.defaultProps = {
6✔
27
  children: null,
28
};
29

30
ModalContent.propTypes = {
6✔
31
  /**
32
   * Content of the modal.
33
   */
34
  children: PropTypes.node,
35
};
36

37
export const ModalContentWithGlobalProps = withGlobalProps(ModalContent, 'ModalContent');
6✔
38

39
export default ModalContentWithGlobalProps;
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