Skip to content

Commit 1089aa6

Browse files
committed
added a comment to EventContext
Co-authored-by: Elena Atencio <[email protected]> Co-authored-by: Iris Wong <[email protected]> Co-authored-by: John Donato <[email protected]>
1 parent 3bc90a2 commit 1089aa6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/context/EventContext.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ const EventContextProvider: React.FC<Props> = React.memo(({ children }) => {
9797
// }
9898
// });
9999
// }, []);
100-
100+
/**
101+
* @function transformEventData - seems like this function tranforms raw data into a format that can be visualize in graphs.
102+
*/
101103
const transformEventData = (data: any[]) => {
102104
const dataList: any[] = [];
103105
const timeList: any[] = [];
@@ -127,7 +129,7 @@ const EventContextProvider: React.FC<Props> = React.memo(({ children }) => {
127129
});
128130
}
129131
});
130-
return { eventDataList: dataList, eventTimeList: timeList };
132+
return { eventDataList: dataList, eventTimeList: timeList };
131133
};
132134

133135
return (
@@ -142,5 +144,4 @@ const EventContextProvider: React.FC<Props> = React.memo(({ children }) => {
142144
</EventContext.Provider>
143145
);
144146
});
145-
146147
export default EventContextProvider;

0 commit comments

Comments
 (0)