Skip to content

Commit b7d8edb

Browse files
author
Jeffrey Na
committed
added comments to AwsChart and EventChart
1 parent 85e0796 commit b7d8edb

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

app/charts/AwsChart.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ interface SoloStyles {
1818
width: number;
1919
}
2020

21+
/**
22+
* @params props - the props object containing relevant data.
23+
* @desc Memoized component to generate an AWS chart with formatted data.
24+
* @returns {JSX.Element} The JSX element with the AWS chart.
25+
*/
2126
const AwsChart: React.FC<any> = React.memo(props => {
2227
const { renderService, metric, timeList, valueList, colourGenerator } = props;
2328
const [solo, setSolo] = useState<SoloStyles | null>(null);

app/charts/EventChart.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ type PlotlyData = {
2828
marker: { colors: string[] };
2929
};
3030

31+
/**
32+
* @desc
33+
*/
3134
const EventChart: React.FC<EventChartProps> = React.memo(props => {
3235
const { metricName, chartData, sizing, colourGenerator } = props;
3336
const [solo, setSolo] = useState<SoloStyles | null>(null);

0 commit comments

Comments
 (0)