From c90b80e9ae504910a393d3be205d7c9b84050e4d Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 21 Aug 2024 21:15:59 +0530 Subject: [PATCH] chore: lint --- src/components/molecules/InterpretationLog.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/molecules/InterpretationLog.tsx b/src/components/molecules/InterpretationLog.tsx index 18fed72b..02592511 100644 --- a/src/components/molecules/InterpretationLog.tsx +++ b/src/components/molecules/InterpretationLog.tsx @@ -27,7 +27,7 @@ export const InterpretationLog = () => { } const handleLog = useCallback((msg: string, date: boolean = true) => { - if (!date){ + if (!date) { setLog((prevState) => prevState + '\n' + msg); } else { setLog((prevState) => prevState + '\n' + `[${new Date().toLocaleString()}] ` + msg); @@ -42,9 +42,9 @@ export const InterpretationLog = () => { scrollLogToBottom(); }, [log, scrollLogToBottom]) - const handleBinaryCallback = useCallback(({data, mimetype}: any) => { + const handleBinaryCallback = useCallback(({ data, mimetype }: any) => { setLog((prevState) => - prevState + '\n' + '---------- Binary output data received ----------' + '\n' + prevState + '\n' + '---------- Binary output data received ----------' + '\n' + `mimetype: ${mimetype}` + '\n' + `data: ${JSON.stringify(data)}` + '\n' + '------------------------------------------------'); scrollLogToBottom(); @@ -66,10 +66,10 @@ export const InterpretationLog = () => { } + expandIcon={} aria-controls="panel1bh-content" id="panel1bh-header" > @@ -88,8 +88,8 @@ export const InterpretationLog = () => { {log} -
+