⬆️ Update beicon and rumext to the latest version.

This commit is contained in:
Andrey Antukh 2020-03-23 16:25:21 +01:00
parent 4c85550d58
commit ce094b663c
6 changed files with 16 additions and 9 deletions

View file

@ -7,7 +7,8 @@
(:import goog.events.EventType
goog.events.KeyCodes))
(mf/defrc dropdown-container
(mf/defc dropdown-container
{::mf/wrap-props false}
[props]
(let [children (gobj/get props "children")
on-close (gobj/get props "on-close")
@ -32,7 +33,8 @@
(mf/use-effect {:fn on-mount})
children))
(mf/defrc dropdown
(mf/defc dropdown
{::mf/wrap-props false}
[props]
(assert (fn? (gobj/get props "on-close")) "missing `on-close` prop")
(assert (boolean? (gobj/get props "show")) "missing `show` prop")