Simplify conditional check
Replace cond with if
This commit is contained in:
parent
f626414314
commit
1efdd09a7b
1 changed files with 8 additions and 11 deletions
|
@ -70,19 +70,16 @@ ROW-CLASS: Similar to GRID-CLASS. Can be:
|
||||||
BODY: The content of the section."
|
BODY: The content of the section."
|
||||||
`(spinneret:with-html
|
`(spinneret:with-html
|
||||||
(:section :class
|
(:section :class
|
||||||
,(cond ((stringp grid-class)
|
,(if (or (stringp grid-class)
|
||||||
`(combine-classes "mb-3" ,grid-class))
|
(eq 'make-grid-class (first grid-class)))
|
||||||
((eq 'make-grid-class (first grid-class))
|
`(combine-classes "mb-3" ,grid-class)
|
||||||
`(combine-classes "mb-3" ,grid-class))
|
`(combine-classes "mb-3" (apply #'make-grid-class ',grid-class)))
|
||||||
(t
|
|
||||||
`(combine-classes "mb-3"
|
|
||||||
(apply #'make-grid-class ',grid-class))))
|
|
||||||
,@(if row-class
|
,@(if row-class
|
||||||
`((:div :class
|
`((:div :class
|
||||||
,(cond ((stringp row-class) row-class)
|
,(if (or (stringp row-class)
|
||||||
((eq 'make-grid-class (first row-class))
|
(eq 'make-grid-class (first row-class)))
|
||||||
row-class)
|
row-class
|
||||||
(t `(apply #'make-grid-class ',row-class)))
|
`(apply #'make-grid-class ',row-class))
|
||||||
,@body))
|
,@body))
|
||||||
body))))
|
body))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue