Skip to content

Commit

Permalink
Remove :snt as default
Browse files Browse the repository at this point in the history
  • Loading branch information
ulisesmac committed Dec 1, 2023
1 parent 99197a0 commit b86249d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/quo/components/utilities/token/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
[:=>
[:cat
[:map {:closed true}
[:size {:optional true :default 32} pos-int?]
[:token {:optional true :default :snt} [:or keyword? string?]]
[:size {:optional true :default 32} [:or keyword? pos-int?]]
[:token {:optional true} [:or keyword? string?]]
[:style {:optional true} map?]
;; Ignores `token` and uses this as parameter to `rn/image`'s source.
[:image-source {:optional true} [:or string? map?]]
Expand Down Expand Up @@ -46,8 +46,7 @@
passed as `image-source`.
"
[{:keys [token size style image-source add-b64-prefix?]
:or {size 32
token :snt}}]
:or {size 32}}]
(let [b64-string (if (and image-source add-b64-prefix?)
(str b64-png-image-prefix image-source)
image-source)
Expand All @@ -56,4 +55,4 @@
{:style (token-style style size)
:source source}]))

(defn view (schema/instrument #'view-internal ?schema))
(def view (schema/instrument #'view-internal ?schema))

0 comments on commit b86249d

Please sign in to comment.