moved some repeated code

This commit is contained in:
plebbitor
2023-03-20 17:08:05 +01:00
parent 1885a105e4
commit 90b53d49fd
14 changed files with 299 additions and 586 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import React from 'react';
import useBoardStore from '../useBoardStore';
import useAppStore from '../useAppStore';
import Modal from 'react-modal';
import styled from 'styled-components';
import Draggable from 'react-draggable';
@@ -248,7 +248,7 @@ const StyledModal = styled(Modal)`
const ReplyModal = ({ isOpen, closeModal }) => {
const selectedStyle = useBoardStore(state => state.selectedStyle);
const selectedStyle = useAppStore(state => state.selectedStyle);
const handleCloseModal = () => {
closeModal();