Skip to content

Commit

Permalink
fix: import react-dom instead of using missing global
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva committed Sep 9, 2021
1 parent 925f7a4 commit 70027b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cljs/athens/electron/db_modal.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
["@material-ui/icons/Group" :default Group]
["@material-ui/icons/MergeType" :default MergeType]
["@material-ui/icons/Storage" :default Storage]
["react-dom" :as react-dom]
[athens.electron.dialogs :as dialogs]
[athens.electron.utils :as utils]
[athens.events :as events]
Expand Down Expand Up @@ -260,7 +261,8 @@
state (r/atom {:input ""
:tab-value 0})]
(fn []
(js/ReactDOM.createPortal
(.createPortal
react-dom
(r/as-element [:div (use-style modal-style)
[modal/modal
{:title [:div.modal__title
Expand Down

0 comments on commit 70027b9

Please sign in to comment.