🔥 refactor(chatModal/index.tsx): remove unused setNoticeData function from alertContext

🔒 chore(chatModal/index.tsx): remove unused lockChat state variable and setLockChat function
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-09 11:18:21 -03:00
commit d0124dc4cc

View file

@ -25,7 +25,7 @@ export default function ChatModal({
const [chatValue, setChatValue] = useState("");
const [chatHistory, setChatHistory] = useState<ChatMessageType[]>([]);
const { reactFlowInstance } = useContext(typesContext);
const { setErrorData, setNoticeData } = useContext(alertContext);
const { setErrorData } = useContext(alertContext);
const ws = useRef<WebSocket | null>(null);
const [lockChat, setLockChat] = useState(false);
const isOpen = useRef(open);