Skip to content

Commit cd2fac0

Browse files
rename
1 parent 69d1a0b commit cd2fac0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+81
-1
lines changed

react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"jest": {
9494
"collectCoverageFrom": [
9595
"src/**/*.{js,jsx}",
96-
"!src/index.js",
96+
"!src/index.jsx",
9797
"!src/serviceWorker.js",
9898
"!**/e2e/**",
9999
"!**/__mocks__/**"
File renamed without changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,16 @@
1717
*/
1818

1919
import React from 'react';
20+
import PropTypes from 'prop-types';
2021
import Chart from 'react-apexcharts';
2122

2223
const Graph = ({ options, series }) => {
2324
return <Chart options={options} series={series} type="bar" height={500} />;
2425
};
2526

27+
Graph.propTypes = {
28+
options: PropTypes.object.isRequired,
29+
series: PropTypes.array.isRequired,
30+
};
31+
2632
export default Graph;

react/src/components/graph/__mocks__/Graph.js renamed to react/src/components/graph/__mocks__/Graph.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818

1919
import React from 'react';
20+
import PropTypes from 'prop-types';
2021

2122
const Graph = ({ options, series }) => {
2223
return (
@@ -28,4 +29,9 @@ const Graph = ({ options, series }) => {
2829
);
2930
};
3031

32+
Graph.propTypes = {
33+
options: PropTypes.object.isRequired,
34+
series: PropTypes.array.isRequired,
35+
};
36+
3137
export default Graph;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818

1919
import React from 'react';
20+
import PropTypes from 'prop-types';
2021
import { Select, MenuItem } from '@mui/material';
2122

2223
const DropDown = ({ items, ...props }) => {
@@ -31,4 +32,9 @@ const DropDown = ({ items, ...props }) => {
3132
) : null;
3233
};
3334

35+
DropDown.propTypes = {
36+
items: PropTypes.array.isRequired,
37+
value: PropTypes.any.isRequired,
38+
};
39+
3440
export default DropDown;
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)