Skip to content

Commit

Permalink
Fix vite build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
krokosik committed Jan 23, 2025
1 parent ff55ca7 commit c3a6956
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/components/HeartbeatPlot.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import React, { useEffect, useState, useRef, useMemo, useCallback } from "react";
import { Line } from "react-chartjs-2";
import ChartStreaming from '@robloche/chartjs-plugin-streaming';
import {
CategoryScale,
Chart as ChartJS,
LineElement,
LinearScale,
PointElement,
CategoryScale,
Tooltip,
Title,
Tooltip,
} from "chart.js";
import 'chartjs-adapter-luxon';
import ChartStreaming from '@robloche/chartjs-plugin-streaming';
import React, { useEffect, useMemo, useRef, useState } from "react";
import { Line } from "react-chartjs-2";

import { listen } from "@tauri-apps/api/event";
import { CompoundTag, Icon } from "@blueprintjs/core";
import { listen } from "@tauri-apps/api/event";

// Register chart components
ChartJS.register(
Expand Down Expand Up @@ -106,6 +106,7 @@ const HeartbeatPlot: React.FC = () => {
refresh: 1000 / SAMPLING_RATE,
ttl: undefined,
frameRate: SAMPLING_RATE,
duration: 1000 * SAMPLE_COUNT / SAMPLING_RATE,
}
}
},
Expand Down

0 comments on commit c3a6956

Please sign in to comment.