Skip to content

Commit

Permalink
tidy: use automatic type detection
Browse files Browse the repository at this point in the history
  • Loading branch information
seanstrom committed Mar 22, 2024
1 parent 1362a09 commit dc18673
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions src/schema/quo.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,19 @@
[:override-ring? [:maybe :boolean]]])

(def ^:private ?image-uri-config
[:merge
[:map [:type [:enum :account :contact :initials]]]
[:multi {:dispatch :type}
[:account
[:map
[:options ?account-image-uri-options]]]
[:contact
[:map
[:options ?contact-image-uri-options]]]
[:initials
[:map
[:options ?initials-image-uri-options]]]]])
[:multi {:dispatch :type}
[:account
[:map
[:type [:= :account]]
[:options ?account-image-uri-options]]]
[:contact
[:map
[:type [:= :contact]]
[:options ?contact-image-uri-options]]]
[:initials
[:map
[:type [:= :initials]]
[:options ?initials-image-uri-options]]]])

(def ^:private ?profile-picture-source
[:or
Expand Down

0 comments on commit dc18673

Please sign in to comment.