projects
/
rainny.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c6a12e
)
Fix bug in this.isRawModalVisible
author
ajbura
<ajbura@gmail.com>
Tue, 8 Feb 2022 12:29:15 +0000
(17:59 +0530)
committer
ajbura
<ajbura@gmail.com>
Tue, 8 Feb 2022 12:29:15 +0000
(17:59 +0530)
Signed-off-by: ajbura <ajbura@gmail.com>
src/app/atoms/modal/RawModal.jsx
patch
|
blob
|
history
diff --git
a/src/app/atoms/modal/RawModal.jsx
b/src/app/atoms/modal/RawModal.jsx
index 31693cdccd09c8a528d07345b6e2e3ad6a1d9a91..306d7d1ba42689abd124e6771a6b80f656941c80 100644
(file)
--- a/
src/app/atoms/modal/RawModal.jsx
+++ b/
src/app/atoms/modal/RawModal.jsx
@@
-1,4
+1,4
@@
-import React from 'react';
+import React
, { useEffect }
from 'react';
import PropTypes from 'prop-types';
import './RawModal.scss';
@@
-26,7
+26,9
@@
function RawModal({
modalClass += 'raw-modal__small ';
}
- navigation.setIsRawModalVisible(isOpen);
+ useEffect(() => {
+ navigation.setIsRawModalVisible(isOpen);
+ }, [isOpen]);
const modalOverlayClass = (overlayClassName !== null) ? `${overlayClassName} ` : '';
return (