From ed1ca374dd4a0c5b0f36fe1e0ec997a92db12a88 Mon Sep 17 00:00:00 2001 From: Macaulay Precious Date: Mon, 11 Nov 2024 11:28:53 +0100 Subject: [PATCH] fix build --- src/hooks/useImageUpload.ts | 2 +- src/hooks/usePaste.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/useImageUpload.ts b/src/hooks/useImageUpload.ts index 570008b..fd39185 100644 --- a/src/hooks/useImageUpload.ts +++ b/src/hooks/useImageUpload.ts @@ -1,5 +1,5 @@ import { useDropzone } from 'react-dropzone'; -import { useEffect, useState } from 'react'; +import { useState } from 'react'; interface UseImageUploadProps { initialImage?: File | null; diff --git a/src/hooks/usePaste.ts b/src/hooks/usePaste.ts index c7bd193..48318f5 100644 --- a/src/hooks/usePaste.ts +++ b/src/hooks/usePaste.ts @@ -38,7 +38,7 @@ const usePaste = (callback: (pasteText: string, prompt: Record, eve const remainingParts: string[] = []; text.split(' ').forEach(part => { - const [key, value] = part.split('='); + const [key] = part.split('='); if (!allowedKeys.has(key)) { remainingParts.push(part); // If the key isn't in the allowed list, it's part of the remaining prompt text }