mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 17:45:38 +01:00
Refactored exports.
This commit is contained in:
parent
1baf4d5571
commit
8bddc666b4
110 changed files with 317 additions and 124 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue