From dd838016ba84c5be432b13ef4afcc61f0f216ff3 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 18 Sep 2024 18:30:04 +0530 Subject: [PATCH] feat: -rm handleWriteToSheet --- src/api/interpretation.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/api/interpretation.ts b/src/api/interpretation.ts index 7d835cec..e2a4dea6 100644 --- a/src/api/interpretation.ts +++ b/src/api/interpretation.ts @@ -9,15 +9,4 @@ export const handleUploadCredentials = async (credentials: any) => { console.error('Error uploading credentials:', error); alert('Failed to upload credentials.'); } -}; - -export const handleWriteToSheet = async (spreadsheetId: any, range: any) => { - try { - await axios.post('http://localhost:8080/integration/write-to-sheet', { spreadsheetId, range }); - alert('Data written to Google Sheet successfully.'); - } catch (error) { - console.error('Error writing to Google Sheet:', error); - alert('Failed to write to Google Sheet.'); - } -}; - +}; \ No newline at end of file