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 9e83d34
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/quo/components/utilities/token/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[:cat
[:map {:closed true}
[:size {:optional true :default 32} pos-int?]
[:token {:optional true :default :snt} [:or keyword? string?]]
[: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 Down

0 comments on commit 9e83d34

Please sign in to comment.