From 28d8d60123713e0cb195043351b97ec748a02b09 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Fri, 23 Aug 2024 19:26:37 +0530 Subject: [PATCH] feat: use getList from action context --- src/components/molecules/InterpretationLog.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/molecules/InterpretationLog.tsx b/src/components/molecules/InterpretationLog.tsx index 1fc1acd8..de0c371a 100644 --- a/src/components/molecules/InterpretationLog.tsx +++ b/src/components/molecules/InterpretationLog.tsx @@ -5,6 +5,7 @@ import Highlight from 'react-highlight'; import { useCallback, useEffect, useRef, useState } from "react"; import { useSocketStore } from "../../context/socket"; import { useBrowserDimensionsStore } from "../../context/browserDimensions"; +import { useActionContext } from '../../context/browserActions'; export const InterpretationLog = () => { const [open, setOpen] = useState(false); @@ -13,6 +14,7 @@ export const InterpretationLog = () => { const logEndRef = useRef(null); const { width } = useBrowserDimensionsStore(); + const { getList } = useActionContext(); const toggleDrawer = (newOpen: boolean) => (event: React.KeyboardEvent | React.MouseEvent) => { if (