From ff10dd7fbe6aa4f2ffa3cd387ec6e8f5bc13895d Mon Sep 17 00:00:00 2001 From: Tim Stirrat Date: Thu, 29 Aug 2024 21:16:31 +1000 Subject: [PATCH] Fix build --- src/components/SysexPreview.tsx | 3 --- src/hooks/use_midi.ts | 2 +- vite.config.ts | 6 +----- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/components/SysexPreview.tsx b/src/components/SysexPreview.tsx index b26b654..14dc538 100644 --- a/src/components/SysexPreview.tsx +++ b/src/components/SysexPreview.tsx @@ -1,11 +1,8 @@ import { Card } from "primereact/card"; import { Waveform } from "../types"; import { sysexWaveformMessage, toHex } from "../lib/sysex"; -import { Button } from "primereact/button"; -import { PrimeIcons } from "primereact/api"; import { Flex } from "./Flex"; import { useMemo } from "react"; -import { IconUtils } from "primereact/utils"; export const SysexPreview: React.FC<{ waveform: Waveform }> = ({ waveform, diff --git a/src/hooks/use_midi.ts b/src/hooks/use_midi.ts index 663f2e7..e270ad4 100644 --- a/src/hooks/use_midi.ts +++ b/src/hooks/use_midi.ts @@ -10,7 +10,7 @@ export function useMidiPermission() { const { state } = await navigator.permissions.query({ name: "midi", sysex: true, - }); + } as unknown as PermissionDescriptor); // TODO: fix this? setGranted(state); } catch (e) { console.error(`Failed to get MIDI permission`, e); diff --git a/vite.config.ts b/vite.config.ts index f9e0483..d366e8c 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,11 +1,7 @@ import { defineConfig } from "vite"; import react from "@vitejs/plugin-react-swc"; -import mkcert from "vite-plugin-mkcert"; // https://vitejs.dev/config/ export default defineConfig({ - plugins: [ - react(), - // mkcert(), - ], + plugins: [react()], });