File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,9 @@ const EventContextProvider: React.FC<Props> = React.memo(({ children }) => {
97
97
// }
98
98
// });
99
99
// }, []);
100
-
100
+ /**
101
+ * @function transformEventData - seems like this function tranforms raw data into a format that can be visualize in graphs.
102
+ */
101
103
const transformEventData = ( data : any [ ] ) => {
102
104
const dataList : any [ ] = [ ] ;
103
105
const timeList : any [ ] = [ ] ;
@@ -127,7 +129,7 @@ const EventContextProvider: React.FC<Props> = React.memo(({ children }) => {
127
129
} ) ;
128
130
}
129
131
} ) ;
130
- return { eventDataList : dataList , eventTimeList : timeList } ;
132
+ return { eventDataList : dataList , eventTimeList : timeList } ;
131
133
} ;
132
134
133
135
return (
@@ -142,5 +144,4 @@ const EventContextProvider: React.FC<Props> = React.memo(({ children }) => {
142
144
</ EventContext . Provider >
143
145
) ;
144
146
} ) ;
145
-
146
147
export default EventContextProvider ;
You can’t perform that action at this time.
0 commit comments