Skip to content

Commit 58e905d

Browse files
committed
[format]
1 parent 1daffb1 commit 58e905d

File tree

1 file changed

+38
-38
lines changed

1 file changed

+38
-38
lines changed

src/re_com/alert.cljs

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -189,47 +189,47 @@
189189
:alert-class alert-class
190190
:alert-style alert-style}}]
191191
(part ::al/wrapper
192-
{:impl box
192+
{:impl box
193+
:theme theme
194+
:post-props (debug/instrument {} props)
195+
:props
196+
{:re-com re-com
197+
:child
198+
(part ::al/body
199+
{:impl border
193200
:theme theme
194-
:post-props (debug/instrument {} props)
201+
:post-props (-> props
202+
(select-keys [:class :style :attr])
203+
(assoc :border border-style
204+
:padding padding))
195205
:props
196206
{:re-com re-com
197207
:child
198-
(part ::al/body
199-
{:impl border
200-
:theme theme
201-
:post-props (-> props
202-
(select-keys [:class :style :attr])
203-
(assoc :border border-style
204-
:padding padding))
205-
:props
206-
{:re-com re-com
207-
:child
208-
(part ::al/scroller
209-
{:impl scroller
210-
:theme theme
211-
:post-props {:style (when max-height {:max-height max-height})}
212-
:props {:re-com re-com
208+
(part ::al/scroller
209+
{:impl scroller
210+
:theme theme
211+
:post-props {:style (when max-height {:max-height max-height})}
212+
:props {:re-com re-com
213213
:child
214214
(part ::al/v-box
215-
{:impl v-box
216-
:theme theme
217-
:props
218-
{:re-com re-com
219-
:children
220-
(for [alert alerts]
221-
(let [{:keys [id alert-type heading body padding closeable?]} alert]
222-
(part ::al/alert-box
223-
{:impl alert-box
224-
:theme theme
225-
:key id
226-
:post-props {:class alert-class
227-
:style alert-style}
228-
:props
229-
{:id id
230-
:alert-type alert-type
231-
:heading heading
232-
:body body
233-
:padding padding
234-
:closeable? closeable?
235-
:on-close on-close}})))}})}})}})}}))))
215+
{:impl v-box
216+
:theme theme
217+
:props
218+
{:re-com re-com
219+
:children
220+
(for [alert alerts]
221+
(let [{:keys [id alert-type heading body padding closeable?]} alert]
222+
(part ::al/alert-box
223+
{:impl alert-box
224+
:theme theme
225+
:key id
226+
:post-props {:class alert-class
227+
:style alert-style}
228+
:props
229+
{:id id
230+
:alert-type alert-type
231+
:heading heading
232+
:body body
233+
:padding padding
234+
:closeable? closeable?
235+
:on-close on-close}})))}})}})}})}}))))

0 commit comments

Comments
 (0)