Skip to content

Commit 9ca5c2d

Browse files
committed
Move schema before function definition
1 parent af18782 commit 9ca5c2d

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/quo/components/counter/step/view.cljs

+13-13
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@
77
[schema.core :as schema]
88
[utils.number]))
99

10+
(def ?schema
11+
[:=>
12+
[:catn
13+
[:props
14+
[:map {:closed true}
15+
[:accessibility-label {:optional true} [:maybe :keyword]]
16+
[:customization-color {:optional true} [:maybe :schema.common/customization-color]]
17+
[:in-blur-view? {:optional true} [:maybe :boolean]]
18+
[:theme :schema.common/theme]
19+
[:type {:optional true} [:enum :active :complete :neutral]]]]
20+
[:value [:maybe [:or :string :int]]]]
21+
:any])
22+
1023
(defn- view-internal
1124
[{:keys [type accessibility-label theme in-blur-view? customization-color]} value]
1225
(let [type (or type :neutral)
@@ -27,19 +40,6 @@
2740
:style {:color (style/text-color type theme)}}
2841
label]]))
2942

30-
(def ?schema
31-
[:=>
32-
[:catn
33-
[:props
34-
[:map {:closed true}
35-
[:accessibility-label {:optional true} [:maybe :keyword]]
36-
[:customization-color {:optional true} [:maybe :schema.common/customization-color]]
37-
[:in-blur-view? {:optional true} [:maybe :boolean]]
38-
[:theme :schema.common/theme]
39-
[:type {:optional true} [:enum :active :complete :neutral]]]]
40-
[:value [:maybe [:or :string :int]]]]
41-
:any])
42-
4343
(def view
4444
(quo.theme/with-theme
4545
(schema/instrument #'view-internal ?schema)))

0 commit comments

Comments
 (0)