feat: use getList from action context

This commit is contained in:
karishmas6
2024-08-23 19:26:37 +05:30
parent 5a23e3c1b2
commit 28d8d60123

View File

@@ -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<boolean>(false);
@@ -13,6 +14,7 @@ export const InterpretationLog = () => {
const logEndRef = useRef<HTMLDivElement | null>(null);
const { width } = useBrowserDimensionsStore();
const { getList } = useActionContext();
const toggleDrawer = (newOpen: boolean) => (event: React.KeyboardEvent | React.MouseEvent) => {
if (