We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c03406 commit 103312eCopy full SHA for 103312e
src/components/NumericDisplay/NumericDisplay.js
@@ -2,13 +2,17 @@ import React from 'react';
2
import PropTypes from 'prop-types';
3
import styles from './NumericDisplay.module.css';
4
5
-const NumericDisplay = ({ value }) => (
+const NumericDisplay = (
6
+ { value }, //display numeric values
7
+) => (
8
<div className={styles.NumericDisplay} data-testid="NumericDisplay">
9
+ {/*display numeric values with styles*/}
10
{value}
11
+ {/*bold the numeric value*/}
12
</div>
13
);
14
-NumericDisplay.propTypes = {};
15
+NumericDisplay.propTypes = { value: PropTypes.number.isRequired };
16
17
NumericDisplay.defaultProps = {};
18
0 commit comments