We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 956661b commit 549d177Copy full SHA for 549d177
src/components/Modal/Modal.react.js
@@ -54,7 +54,9 @@ const Modal = ({
54
55
const handleMouseDown = (side) => (e) => {
56
e.preventDefault();
57
- if (!modalRef.current) return;
+ if (!modalRef.current) {
58
+ return;
59
+ }
60
resizing.current = {
61
active: true,
62
side,
@@ -66,7 +68,9 @@ const Modal = ({
66
68
67
69
const handleMouseMove = useCallback(
70
(e) => {
- if (!resizing.current.active || !modalRef.current) return;
71
+ if (!resizing.current.active || !modalRef.current) {
72
73
74
const { side, startX, startWidth } = resizing.current;
75
if (side === 'right') {
76
let newWidth = startWidth + 2 * (e.clientX - startX);
0 commit comments