mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix findDOMNode
This commit is contained in:
@@ -254,6 +254,8 @@ const ReplyModal = ({ isOpen, closeModal }) => {
|
|||||||
closeModal();
|
closeModal();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const nodeRef = React.useRef(null);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<StyledModal
|
<StyledModal
|
||||||
isOpen={isOpen}
|
isOpen={isOpen}
|
||||||
@@ -263,8 +265,8 @@ const ReplyModal = ({ isOpen, closeModal }) => {
|
|||||||
shouldCloseOnOverlayClick={false}
|
shouldCloseOnOverlayClick={false}
|
||||||
selectedStyle={selectedStyle}
|
selectedStyle={selectedStyle}
|
||||||
overlayClassName="hide-modal-overlay">
|
overlayClassName="hide-modal-overlay">
|
||||||
<Draggable handle=".modal-header">
|
<Draggable handle=".modal-header" nodeRef={nodeRef}>
|
||||||
<div className="modal-content">
|
<div className="modal-content" ref={nodeRef}>
|
||||||
<div className="modal-header">
|
<div className="modal-header">
|
||||||
Reply to Thread
|
Reply to Thread
|
||||||
<button className="icon" onClick={handleCloseModal} title="close" />
|
<button className="icon" onClick={handleCloseModal} title="close" />
|
||||||
|
|||||||
Reference in New Issue
Block a user