Refactored exports.

This commit is contained in:
Mike Cao 2023-04-21 08:00:42 -07:00
parent 1baf4d5571
commit 8bddc666b4
110 changed files with 317 additions and 124 deletions

View file

@ -23,7 +23,7 @@ function mapData(data) {
return arr;
}
export default function RealtimeChart({ data, unit, ...props }) {
export function RealtimeChart({ data, unit, ...props }) {
const endDate = startOfMinute(new Date());
const startDate = subMinutes(endDate, REALTIME_RANGE);
const prevEndDate = useRef(endDate);
@ -58,3 +58,5 @@ export default function RealtimeChart({ data, unit, ...props }) {
/>
);
}
export default RealtimeChart;