-
Notifications
You must be signed in to change notification settings - Fork 985
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(schema): for user-avatar component
Signed-off-by: yqrashawn <namy.19@gmail.com>
- Loading branch information
Showing
8 changed files
with
64 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
(ns quo.components.avatars.user-avatar.schema | ||
(:require | ||
[quo.components.avatars.user-avatar.style :as style])) | ||
|
||
(def ?schema | ||
[:=> | ||
[:catn | ||
[:props | ||
[:map | ||
[:full-name {:optional true} [:maybe string?]] | ||
[:size {:optional true} [:maybe (into [:enum] (keys style/sizes))]] | ||
[:customization-color {:optional true} [:maybe :schema.common/customization-color]] | ||
[:static? {:optional true} [:maybe boolean?]] | ||
[:status-indicator? {:optional true} [:maybe boolean?]] | ||
[:online? {:optional true} [:maybe boolean?]] | ||
[:ring? {:optional true} [:maybe boolean?]] | ||
[:theme :schema.common/theme] | ||
[:profile-picture | ||
{:optional true} | ||
[:maybe | ||
[:or | ||
:schema.common/image-source | ||
[:map [:fn fn?]]]]]]]] | ||
:any]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters