chore: restructure quo2 components (#13948)
This commit is contained in:
parent
402496b4dc
commit
33aa595877
|
@ -1,4 +1,4 @@
|
|||
(ns quo2.components.avatar.avatar-themes
|
||||
(ns quo2.components.avatars.avatar-themes
|
||||
(:require [quo2.foundations.colors :as colors]))
|
||||
|
||||
(def themes {:light {:primary {:icon-color colors/primary-50
|
|
@ -1,4 +1,4 @@
|
|||
(ns quo2.components.group-avatar
|
||||
(ns quo2.components.avatars.group-avatar
|
||||
(:require [quo2.foundations.colors :as colors]
|
||||
[quo.theme :as quo.theme]
|
||||
[quo2.components.icon :as icon]
|
|
@ -1,7 +1,7 @@
|
|||
(ns quo2.components.icon-avatar
|
||||
(ns quo2.components.avatars.icon-avatar
|
||||
(:require [quo.react-native :as rn]
|
||||
[quo.theme :as theme]
|
||||
[quo2.components.avatar.avatar-themes :refer [themes]]
|
||||
[quo2.components.avatars.avatar-themes :refer [themes]]
|
||||
[status-im.ui.components.icons.icons :as icons]))
|
||||
|
||||
(def sizes
|
|
@ -1,6 +1,6 @@
|
|||
(ns quo2.components.user-avatar
|
||||
(ns quo2.components.avatars.user-avatar
|
||||
(:require [quo.react-native :as rn]
|
||||
[quo2.components.text :as text]
|
||||
[quo2.components.markdown.text :as text]
|
||||
[quo2.foundations.colors :as colors]
|
||||
[quo2.components.icon :as icons]
|
||||
[clojure.string :refer [upper-case split blank?]]
|
|
@ -1,7 +1,7 @@
|
|||
(ns quo2.components.wallet-user-avatar
|
||||
(ns quo2.components.avatars.wallet-user-avatar
|
||||
(:require [quo.react-native :as rn]
|
||||
[quo2.foundations.colors :as colors]
|
||||
[quo2.components.text :as text]
|
||||
[quo2.components.markdown.text :as text]
|
||||
[clojure.string :as clojure-string]))
|
||||
|
||||
(def themes {:light {:primary {:text-color colors/primary-50
|
|
@ -1,7 +1,7 @@
|
|||
(ns quo2.components.button
|
||||
(ns quo2.components.buttons.button
|
||||
(:require [quo.react-native :as rn]
|
||||
[quo2.foundations.colors :as colors]
|
||||
[quo2.components.text :as text]
|
||||
[quo2.components.markdown.text :as text]
|
||||
[quo.theme :as theme]
|
||||
[reagent.core :as reagent]
|
||||
[quo2.components.icon :as quo2.icons]))
|
|
@ -1,6 +1,6 @@
|
|||
(ns quo2.components.communities.community-card-view
|
||||
(ns quo2.components.community.community-card-view
|
||||
(:require
|
||||
[quo2.components.communities.community-view :as community-view]
|
||||
[quo2.components.community.community-view :as community-view]
|
||||
[status-im.communities.core :as communities]
|
||||
[status-im.utils.handlers :refer [>evt <sub]]
|
||||
[status-im.ui.components.react :as react]
|
|
@ -1,7 +1,7 @@
|
|||
(ns quo2.components.communities.community-list-view
|
||||
(ns quo2.components.community.community-list-view
|
||||
(:require
|
||||
[quo2.components.communities.community-view :as community-view]
|
||||
[quo2.components.text :as text]
|
||||
[quo2.components.community.community-view :as community-view]
|
||||
[quo2.components.markdown.text :as text]
|
||||
[quo2.foundations.colors :as colors]
|
||||
[status-im.communities.core :as communities]
|
||||
[status-im.utils.handlers :refer [>evt]]
|
|
@ -1,10 +1,10 @@
|
|||
(ns quo2.components.communities.community-view
|
||||
(ns quo2.components.community.community-view
|
||||
(:require
|
||||
[quo2.components.text :as text]
|
||||
[quo2.components.markdown.text :as text]
|
||||
[quo2.components.icon :as icons]
|
||||
[quo2.foundations.colors :as colors]
|
||||
[quo2.components.permission-tag :as permission]
|
||||
[quo2.components.filter-tag :as filter-tag]
|
||||
[quo2.components.tags.permission-tag :as permission]
|
||||
[quo2.components.tags.filter-tag :as filter-tag]
|
||||
[status-im.ui.components.react :as react]
|
||||
[status-im.utils.money :as money]
|
||||
[status-im.i18n.i18n :as i18n]
|
|
@ -1,7 +1,7 @@
|
|||
(ns quo2.components.counter
|
||||
(ns quo2.components.counter.counter
|
||||
(:require [quo.theme :as theme]
|
||||
[quo.react-native :as rn]
|
||||
[quo2.components.text :as text]
|
||||
[quo2.components.markdown.text :as text]
|
||||
[quo2.foundations.colors :as colors]))
|
||||
|
||||
(def themes
|
|
@ -1,8 +1,8 @@
|
|||
(ns quo2.components.header
|
||||
(:require [oops.core :refer [oget]]
|
||||
[quo.animated :as animated]
|
||||
[quo2.components.button :as button]
|
||||
[quo2.components.text :as text]
|
||||
[quo2.components.buttons.button :as button]
|
||||
[quo2.components.markdown.text :as text]
|
||||
[quo2.foundations.colors :as colors]
|
||||
[quo.design-system.spacing :as spacing]
|
||||
[quo.react-native :as rn]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
(ns quo2.components.info-message
|
||||
(ns quo2.components.info.info-message
|
||||
(:require [quo.theme :as theme]
|
||||
[quo.react-native :as rn]
|
||||
[quo2.components.text :as text]
|
||||
[quo2.components.markdown.text :as text]
|
||||
[quo2.foundations.colors :as colors]
|
||||
[quo2.components.icon :as quo2.icons]))
|
||||
|
|
@ -1,11 +1,11 @@
|
|||
(ns quo2.components.information-box
|
||||
(ns quo2.components.info.information-box
|
||||
(:require [quo.theme :as theme]
|
||||
[quo.react-native :as rn]
|
||||
[clojure.string :as string]
|
||||
[quo2.foundations.colors :as colors]
|
||||
[quo2.components.icon :as quo2.icons]
|
||||
[quo2.components.button :as quo2.button]
|
||||
[quo2.components.info-message :as info-message]))
|
||||
[quo2.components.buttons.button :as quo2.button]
|
||||
[quo2.components.info.info-message :as info-message]))
|
||||
|
||||
(def themes
|
||||
{:light {:default {:bg colors/white
|
|
@ -1,4 +1,4 @@
|
|||
(ns quo2.components.text
|
||||
(ns quo2.components.markdown.text
|
||||
(:require [quo.react-native :as rn]
|
||||
[reagent.core :as reagent]
|
||||
[quo.theme :as theme]
|
|
@ -1,10 +1,10 @@
|
|||
(ns quo2.components.messages-gap
|
||||
(ns quo2.components.messages.gap
|
||||
(:require
|
||||
[oops.core :refer [oget]]
|
||||
[quo.react-native :as rn]
|
||||
[quo.theme :as theme]
|
||||
[quo2.components.icon :as icon]
|
||||
[quo2.components.text :as text]
|
||||
[quo2.components.markdown.text :as text]
|
||||
[quo2.foundations.colors :as colors]
|
||||
[reagent.core :as reagent]
|
||||
[status-im.i18n.i18n :as i18n]
|
|
@ -1,9 +1,9 @@
|
|||
(ns quo2.components.activity-logs
|
||||
(ns quo2.components.notifications.activity-logs
|
||||
(:require [quo.react-native :as rn]
|
||||
[quo2.foundations.colors :as colors]
|
||||
[quo2.components.status-tags :as status-tags]
|
||||
[quo2.components.button :as quo2.button]
|
||||
[quo2.components.text :as text]
|
||||
[quo2.components.tags.status-tags :as status-tags]
|
||||
[quo2.components.buttons.button :as quo2.button]
|
||||
[quo2.components.markdown.text :as text]
|
||||
[quo2.components.icon :as quo2.icons]))
|
||||
|
||||
(defn activity-logs [_]
|
|
@ -1,5 +1,5 @@
|
|||
(ns quo2.components.reacts
|
||||
(:require [quo2.components.text :as quo2-text]
|
||||
(ns quo2.components.reactions.react
|
||||
(:require [quo2.components.markdown.text :as quo2-text]
|
||||
[quo.react-native :as rn]
|
||||
[quo.theme :as theme]
|
||||
[quo2.foundations.colors :as colors]
|
|
@ -1,7 +1,7 @@
|
|||
(ns quo2.components.segmented-control
|
||||
(ns quo2.components.tabs.segmented-tab
|
||||
(:require [reagent.core :as reagent]
|
||||
[quo.react-native :as rn]
|
||||
[quo2.components.tab :as tab]
|
||||
[quo2.components.tabs.tab :as tab]
|
||||
[quo2.foundations.colors :as colors]
|
||||
[quo.theme :as theme]))
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
(ns quo2.components.tab
|
||||
(ns quo2.components.tabs.tab
|
||||
(:require [quo2.foundations.colors :as colors]
|
||||
[quo.react-native :as rn]
|
||||
[quo.theme :as theme]
|
||||
[status-im.ui.components.icons.icons :as icons]
|
||||
[quo2.components.text :as text]))
|
||||
[quo2.components.markdown.text :as text]))
|
||||
|
||||
(def themes {:light {:default {:background-color colors/neutral-20
|
||||
:icon-color colors/neutral-50
|
|
@ -1,7 +1,7 @@
|
|||
(ns quo2.components.tabs
|
||||
(ns quo2.components.tabs.tabs
|
||||
(:require [reagent.core :as reagent]
|
||||
[quo.react-native :as rn]
|
||||
[quo2.components.tab :as tab]))
|
||||
[quo2.components.tabs.tab :as tab]))
|
||||
|
||||
(defn tabs [{:keys [default-active on-change]}]
|
||||
(let [active-tab-id (reagent/atom default-active)]
|
|
@ -1,4 +1,4 @@
|
|||
(ns quo2.components.base-tag
|
||||
(ns quo2.components.tags.base-tag
|
||||
(:require
|
||||
[quo.react-native :as rn]))
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
(ns quo2.components.context-tags
|
||||
(ns quo2.components.tags.context-tags
|
||||
(:require [quo2.foundations.colors :as colors]
|
||||
[quo.theme :as quo.theme]
|
||||
[quo2.components.text :as text]
|
||||
[quo2.components.group-avatar :as group-avatar]
|
||||
[quo2.components.markdown.text :as text]
|
||||
[quo2.components.avatars.group-avatar :as group-avatar]
|
||||
[quo.react-native :as rn]))
|
||||
|
||||
(defn padding-left-for-type [type]
|
|
@ -1,10 +1,10 @@
|
|||
(ns quo2.components.filter-tag
|
||||
(ns quo2.components.tags.filter-tag
|
||||
(:require [quo2.foundations.colors :as colors]
|
||||
[quo.theme :as theme]
|
||||
[quo.react-native :as rn]
|
||||
[quo2.components.icon :as icons]
|
||||
[quo2.components.text :as text]
|
||||
[quo2.components.base-tag :as base-tag]))
|
||||
[quo2.components.markdown.text :as text]
|
||||
[quo2.components.tags.base-tag :as base-tag]))
|
||||
|
||||
(def themes {:light {:default {:border-color colors/neutral-20
|
||||
:blurred-border-color colors/neutral-80-opa-5
|
|
@ -1,7 +1,7 @@
|
|||
(ns quo2.components.filter-tags
|
||||
(ns quo2.components.tags.filter-tags
|
||||
(:require [reagent.core :as reagent]
|
||||
[quo.react-native :as rn]
|
||||
[quo2.components.filter-tag :as tag]))
|
||||
[quo2.components.tags.filter-tag :as tag]))
|
||||
|
||||
(defn tags [{:keys [default-active on-change]}]
|
||||
(let [active-tab-id (reagent/atom default-active)]
|
|
@ -1,9 +1,9 @@
|
|||
(ns quo2.components.permission-tag
|
||||
(ns quo2.components.tags.permission-tag
|
||||
(:require [status-im.ui.components.react :as react]
|
||||
[quo2.components.text :as text]
|
||||
[quo2.components.markdown.text :as text]
|
||||
[quo2.foundations.colors :as colors]
|
||||
[quo2.components.icon :as icons]
|
||||
[quo2.components.base-tag :as base-tag]
|
||||
[quo2.components.tags.base-tag :as base-tag]
|
||||
[status-im.i18n.i18n :as i18n]))
|
||||
|
||||
(defn outer-resource-container [size background-color]
|
|
@ -1,9 +1,9 @@
|
|||
(ns quo2.components.status-tags
|
||||
(ns quo2.components.tags.status-tags
|
||||
(:require [status-im.i18n.i18n :as i18n]
|
||||
[quo2.foundations.colors :as colors]
|
||||
[quo.theme :as quo.theme]
|
||||
[quo2.components.icon :as icon]
|
||||
[quo2.components.text :as text]
|
||||
[quo2.components.markdown.text :as text]
|
||||
[quo.react-native :as rn]))
|
||||
|
||||
(def default-container-style
|
|
@ -1,8 +1,8 @@
|
|||
(ns quo2.components.tag
|
||||
(ns quo2.components.tags.tag
|
||||
(:require [quo.react-native :as rn]
|
||||
[quo2.foundations.colors :as colors]
|
||||
[quo.theme :as theme]
|
||||
[quo2.components.text :as text]))
|
||||
[quo2.components.markdown.text :as text]))
|
||||
|
||||
(def themes {:light {:background-color colors/neutral-20}
|
||||
:dark {:background-color colors/neutral-80}})
|
|
@ -1,9 +1,9 @@
|
|||
(ns quo2.components.token-tag
|
||||
(ns quo2.components.tags.token-tag
|
||||
(:require [quo2.foundations.colors :as colors]
|
||||
[quo.react-native :as rn]
|
||||
[quo.theme :as theme]
|
||||
[status-im.ui.components.icons.icons :as icons]
|
||||
[quo2.components.tag :as tag]))
|
||||
[quo2.components.tags.tag :as tag]))
|
||||
|
||||
(defn get-value-from-size [size big-option small-option]
|
||||
(if (= size :big) big-option small-option))
|
|
@ -1,4 +1,4 @@
|
|||
(ns quo2.components.token-overview
|
||||
(ns quo2.components.wallet.token-overview
|
||||
(:require
|
||||
[quo2.foundations.colors :as colors]
|
||||
[status-im.i18n.i18n :as i18n]
|
||||
|
@ -6,7 +6,7 @@
|
|||
[clojure.string :as string]
|
||||
[status-im.utils.currency :as currencies]
|
||||
[status-im.ui.components.icons.icons :as icons]
|
||||
[quo2.components.text :as text]))
|
||||
[quo2.components.markdown.text :as text]))
|
||||
|
||||
(def container-style {:display :flex :width "100%" :padding-left 20 :padding-right 20 :padding-top 12 :padding-bottom 12})
|
||||
|
|
@ -1,9 +1,9 @@
|
|||
(ns quo2.screens.group-avatar
|
||||
(ns quo2.screens.avatars.group-avatar
|
||||
(:require [reagent.core :as reagent]
|
||||
[quo.react-native :as rn]
|
||||
[quo.previews.preview :as preview]
|
||||
[quo2.foundations.colors :as colors]
|
||||
[quo2.components.group-avatar :as quo2]))
|
||||
[quo2.components.avatars.group-avatar :as quo2]))
|
||||
|
||||
(def descriptor [{:label "Size"
|
||||
:key :size
|
|
@ -1,9 +1,9 @@
|
|||
(ns quo2.screens.icon-avatar
|
||||
(ns quo2.screens.avatars.icon-avatar
|
||||
(:require [reagent.core :as reagent]
|
||||
[quo.react-native :as rn]
|
||||
[quo.previews.preview :as preview]
|
||||
[quo.design-system.colors :as colors]
|
||||
[quo2.components.icon-avatar :as quo2]))
|
||||
[quo2.components.avatars.icon-avatar :as quo2]))
|
||||
|
||||
(def descriptor [{:label "Size"
|
||||
:key :size
|
|
@ -1,8 +1,8 @@
|
|||
(ns quo2.screens.user-avatar
|
||||
(ns quo2.screens.avatars.user-avatar
|
||||
(:require [quo.react-native :as rn]
|
||||
[quo.design-system.colors :as colors]
|
||||
[quo.previews.preview :as preview]
|
||||
[quo2.components.user-avatar :as quo2]
|
||||
[quo2.components.avatars.user-avatar :as quo2]
|
||||
[reagent.core :as reagent]))
|
||||
|
||||
(def descriptor [{:label "Size:"
|
|
@ -1,8 +1,8 @@
|
|||
(ns quo2.screens.wallet-user-avatar
|
||||
(ns quo2.screens.avatars.wallet-user-avatar
|
||||
(:require [quo.react-native :as rn]
|
||||
[quo.previews.preview :as preview]
|
||||
[reagent.core :as reagent]
|
||||
[quo2.components.wallet-user-avatar :as quo2]
|
||||
[quo2.components.avatars.wallet-user-avatar :as quo2]
|
||||
[quo.design-system.colors :as colors]))
|
||||
|
||||
(def descriptor [{:label "First name"
|
|
@ -1,9 +1,9 @@
|
|||
(ns quo2.screens.button
|
||||
(ns quo2.screens.buttons.button
|
||||
(:require [reagent.core :as reagent]
|
||||
[quo.react-native :as rn]
|
||||
[quo.previews.preview :as preview]
|
||||
[quo.design-system.colors :as colors]
|
||||
[quo2.components.button :as quo2]))
|
||||
[quo2.components.buttons.button :as quo2]))
|
||||
|
||||
(def descriptor [{:label "Type:"
|
||||
:key :type
|
|
@ -1,12 +1,12 @@
|
|||
(ns quo2.screens.community-card-view
|
||||
(ns quo2.screens.community.community-card-view
|
||||
(:require [quo.react-native :as rn]
|
||||
[quo.previews.preview :as preview]
|
||||
[reagent.core :as reagent]
|
||||
[status-im.constants :as constants]
|
||||
[quo.design-system.colors :as quo.colors]
|
||||
[quo2.foundations.colors :as colors]
|
||||
[quo2.components.communities.community-list-view :as community-list-view]
|
||||
[quo2.components.communities.community-card-view :as community-card-view]
|
||||
[quo2.components.community.community-list-view :as community-list-view]
|
||||
[quo2.components.community.community-card-view :as community-card-view]
|
||||
[status-im.i18n.i18n :as i18n]
|
||||
[status-im.react-native.resources :as resources]))
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
(ns quo2.screens.counter
|
||||
(ns quo2.screens.counter.counter
|
||||
(:require [quo.react-native :as rn]
|
||||
[quo.previews.preview :as preview]
|
||||
[reagent.core :as reagent]
|
||||
[quo2.components.counter :as quo2]
|
||||
[quo2.components.counter.counter :as quo2]
|
||||
[quo.design-system.colors :as colors]))
|
||||
|
||||
(def descriptor [{:label "Type:"
|
|
@ -1,9 +1,9 @@
|
|||
(ns quo2.screens.info-message
|
||||
(ns quo2.screens.info.info-message
|
||||
(:require [quo.react-native :as rn]
|
||||
[reagent.core :as reagent]
|
||||
[quo.previews.preview :as preview]
|
||||
[quo2.foundations.colors :as colors]
|
||||
[quo2.components.info-message :as quo2]))
|
||||
[quo2.components.info.info-message :as quo2]))
|
||||
|
||||
(def descriptor [{:label "Type:"
|
||||
:key :type
|
|
@ -1,9 +1,9 @@
|
|||
(ns quo2.screens.information-box
|
||||
(ns quo2.screens.info.information-box
|
||||
(:require [quo.react-native :as rn]
|
||||
[reagent.core :as reagent]
|
||||
[quo.previews.preview :as preview]
|
||||
[quo2.foundations.colors :as colors]
|
||||
[quo2.components.information-box :as quo2]))
|
||||
[quo2.components.info.information-box :as quo2]))
|
||||
|
||||
(def descriptor [{:label "Type:"
|
||||
:key :type
|
|
@ -4,27 +4,27 @@
|
|||
[quo.design-system.colors :as colors]
|
||||
[quo.react-native :as rn]
|
||||
[quo.theme :as theme]
|
||||
[quo2.screens.activity-logs :as activity-logs]
|
||||
[quo2.screens.button :as button]
|
||||
[quo2.screens.community-card-view :as community-card]
|
||||
[quo2.screens.context-tags :as context-tags]
|
||||
[quo2.screens.counter :as counter]
|
||||
[quo2.screens.filter-tags :as filter-tags]
|
||||
[quo2.screens.group-avatar :as group-avatar]
|
||||
[quo2.screens.icon-avatar :as icon-avatar]
|
||||
[quo2.screens.info-message :as info-message]
|
||||
[quo2.screens.information-box :as information-box]
|
||||
[quo2.screens.messages-gap :as messages-gap]
|
||||
[quo2.screens.permission-tag :as permission-tag]
|
||||
[quo2.screens.segmented :as segmented]
|
||||
[quo2.screens.status-tags :as status-tags]
|
||||
[quo2.screens.tabs :as tabs]
|
||||
[quo2.screens.text :as text]
|
||||
[quo2.screens.token-overview :as token-overview]
|
||||
[quo2.screens.token-tag :as token-tag]
|
||||
[quo2.screens.wallet-user-avatar :as wallet-user-avatar]
|
||||
[quo2.screens.user-avatar :as user-avatar]
|
||||
[quo2.screens.reacts :as reacts]
|
||||
[quo2.screens.avatars.icon-avatar :as icon-avatar]
|
||||
[quo2.screens.avatars.group-avatar :as group-avatar]
|
||||
[quo2.screens.avatars.user-avatar :as user-avatar]
|
||||
[quo2.screens.avatars.wallet-user-avatar :as wallet-user-avatar]
|
||||
[quo2.screens.buttons.button :as button]
|
||||
[quo2.screens.counter.counter :as counter]
|
||||
[quo2.screens.community.community-card-view :as community-card]
|
||||
[quo2.screens.info.info-message :as info-message]
|
||||
[quo2.screens.info.information-box :as information-box]
|
||||
[quo2.screens.markdown.text :as text]
|
||||
[quo2.screens.messages.gap :as messages-gap]
|
||||
[quo2.screens.notifications.activity-logs :as activity-logs]
|
||||
[quo2.screens.reactions.react :as react]
|
||||
[quo2.screens.tabs.segmented-tab :as segmented]
|
||||
[quo2.screens.tabs.tabs :as tabs]
|
||||
[quo2.screens.tags.context-tags :as context-tags]
|
||||
[quo2.screens.tags.filter-tags :as filter-tags]
|
||||
[quo2.screens.tags.permission-tag :as permission-tag]
|
||||
[quo2.screens.tags.status-tags :as status-tags]
|
||||
[quo2.screens.tags.token-tag :as token-tag]
|
||||
[quo2.screens.wallet.token-overview :as token-overview]
|
||||
[re-frame.core :as re-frame]))
|
||||
|
||||
(def screens [{:name :quo2-texts
|
||||
|
@ -36,9 +36,9 @@
|
|||
{:name :quo2-user-avatar
|
||||
:insets {:top false}
|
||||
:component user-avatar/preview-user-avatar}
|
||||
{:name :quo2-reacts
|
||||
{:name :quo2-react
|
||||
:insets {:top false}
|
||||
:component reacts/preview-reacts}
|
||||
:component react/preview-react}
|
||||
{:name :quo2-button
|
||||
:insets {:top false}
|
||||
:component button/preview-button}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
(ns quo2.screens.text
|
||||
(ns quo2.screens.markdown.text
|
||||
(:require [quo.react-native :as rn]
|
||||
[quo.previews.preview :as preview]
|
||||
[reagent.core :as reagent]
|
||||
[quo2.components.text :as quo2]
|
||||
[quo2.components.markdown.text :as quo2]
|
||||
[quo.design-system.colors :as colors]))
|
||||
|
||||
(def descriptor [{:label "Size:"
|
|
@ -1,8 +1,8 @@
|
|||
(ns quo2.screens.messages-gap
|
||||
(ns quo2.screens.messages.gap
|
||||
(:require
|
||||
[quo.previews.preview :as preview]
|
||||
[quo.react-native :as rn]
|
||||
[quo2.components.messages-gap :as quo2]
|
||||
[quo2.components.messages.gap :as quo2]
|
||||
[reagent.core :as reagent]))
|
||||
|
||||
(def descriptor [{:label "Timestamp Far"
|
|
@ -1,10 +1,10 @@
|
|||
(ns quo2.screens.activity-logs
|
||||
(ns quo2.screens.notifications.activity-logs
|
||||
(:require [reagent.core :as reagent]
|
||||
[quo.react-native :as rn]
|
||||
[quo.previews.preview :as preview]
|
||||
[quo2.foundations.colors :as colors]
|
||||
[quo2.screens.status-tags :as status-tags]
|
||||
[quo2.components.activity-logs :as activity-logs]))
|
||||
[quo2.screens.tags.status-tags :as status-tags]
|
||||
[quo2.components.notifications.activity-logs :as activity-logs]))
|
||||
|
||||
(def descriptor [{:label "Unread:"
|
||||
:key :unread
|
|
@ -1,8 +1,8 @@
|
|||
(ns quo2.screens.reacts
|
||||
(ns quo2.screens.reactions.react
|
||||
(:require [quo.react-native :as rn]
|
||||
[quo.previews.preview :as preview]
|
||||
[reagent.core :as reagent]
|
||||
[quo2.components.reacts :as quo2]
|
||||
[quo2.components.reactions.react :as quo2]
|
||||
[quo.design-system.colors :as colors]))
|
||||
|
||||
(def descriptor [{:label "Count"
|
||||
|
@ -36,7 +36,7 @@
|
|||
[quo2/render-react @state]
|
||||
[quo2/open-reactions-menu @state]]])))
|
||||
|
||||
(defn preview-reacts []
|
||||
(defn preview-react []
|
||||
[rn/view {:background-color (:ui-background @colors/theme)
|
||||
:flex 1}
|
||||
[rn/flat-list {:flex 1
|
|
@ -1,8 +1,8 @@
|
|||
(ns quo2.screens.segmented
|
||||
(ns quo2.screens.tabs.segmented-tab
|
||||
(:require [quo.react-native :as rn]
|
||||
[quo.design-system.colors :as colors]
|
||||
[quo.previews.preview :as preview]
|
||||
[quo2.components.segmented-control :as quo2]
|
||||
[quo2.components.tabs.segmented-tab :as quo2]
|
||||
[reagent.core :as reagent]))
|
||||
|
||||
(def descriptor [{:label "Size:"
|
|
@ -1,8 +1,8 @@
|
|||
(ns quo2.screens.tabs
|
||||
(ns quo2.screens.tabs.tabs
|
||||
(:require [quo.react-native :as rn]
|
||||
[quo.design-system.colors :as colors]
|
||||
[quo.previews.preview :as preview]
|
||||
[quo2.components.tabs :as quo2]
|
||||
[quo2.components.tabs.tabs :as quo2]
|
||||
[reagent.core :as reagent]))
|
||||
|
||||
(def descriptor [{:label "Size:"
|
|
@ -1,10 +1,10 @@
|
|||
(ns quo2.screens.context-tags
|
||||
(ns quo2.screens.tags.context-tags
|
||||
(:require [reagent.core :as reagent]
|
||||
[status-im.multiaccounts.core :as multiaccounts]
|
||||
[quo.react-native :as rn]
|
||||
[quo.previews.preview :as preview]
|
||||
[quo2.foundations.colors :as colors]
|
||||
[quo2.components.context-tags :as quo2]))
|
||||
[quo2.components.tags.context-tags :as quo2]))
|
||||
|
||||
(def group-avatar-default-params
|
||||
{:size :small
|
|
@ -1,9 +1,9 @@
|
|||
(ns quo2.screens.filter-tags
|
||||
(ns quo2.screens.tags.filter-tags
|
||||
(:require [quo.react-native :as rn]
|
||||
[quo.previews.preview :as preview]
|
||||
[status-im.ui.components.react :as react]
|
||||
[quo2.foundations.colors :as colors]
|
||||
[quo2.components.filter-tags :as quo2.tags]
|
||||
[quo2.components.tags.filter-tags :as quo2.tags]
|
||||
[status-im.react-native.resources :as resources]
|
||||
[reagent.core :as reagent]))
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
(ns quo2.screens.permission-tag
|
||||
(ns quo2.screens.tags.permission-tag
|
||||
(:require [quo.react-native :as rn]
|
||||
[quo.previews.preview :as preview]
|
||||
[quo2.components.permission-tag :as permission-tag]
|
||||
[quo2.components.tags.permission-tag :as permission-tag]
|
||||
[quo2.foundations.colors :as colors]
|
||||
[status-im.react-native.resources :as resources]
|
||||
[reagent.core :as reagent]))
|
|
@ -1,9 +1,9 @@
|
|||
(ns quo2.screens.status-tags
|
||||
(ns quo2.screens.tags.status-tags
|
||||
(:require [reagent.core :as reagent]
|
||||
[quo.react-native :as rn]
|
||||
[quo.previews.preview :as preview]
|
||||
[quo2.foundations.colors :as colors]
|
||||
[quo2.components.status-tags :as quo2]))
|
||||
[quo2.components.tags.status-tags :as quo2]))
|
||||
|
||||
(def status-tags-options
|
||||
{:label "Status"
|
|
@ -1,8 +1,8 @@
|
|||
(ns quo2.screens.token-tag
|
||||
(ns quo2.screens.tags.token-tag
|
||||
(:require [quo.react-native :as rn]
|
||||
[quo.previews.preview :as preview]
|
||||
[reagent.core :as reagent]
|
||||
[quo2.components.token-tag :as quo2]
|
||||
[quo2.components.tags.token-tag :as quo2]
|
||||
[quo.design-system.colors :as colors]))
|
||||
|
||||
(def descriptor [{:label "Size:"
|
|
@ -1,8 +1,8 @@
|
|||
(ns quo2.screens.token-overview
|
||||
(ns quo2.screens.wallet.token-overview
|
||||
(:require [quo.react-native :as rn]
|
||||
[quo.previews.preview :as preview]
|
||||
[reagent.core :as reagent]
|
||||
[quo2.components.token-overview :as quo2]
|
||||
[quo2.components.wallet.token-overview :as quo2]
|
||||
[quo.design-system.colors :as colors]))
|
||||
|
||||
(def descriptor [{:label "Token:"
|
|
@ -1,8 +1,8 @@
|
|||
(ns status-im.switcher.cards.messaging-card
|
||||
(:require [quo.react-native :as rn]
|
||||
[quo2.components.text :as text]
|
||||
[quo2.components.markdown.text :as text]
|
||||
[status-im.constants :as constants]
|
||||
[quo2.components.button :as button]
|
||||
[quo2.components.buttons.button :as button]
|
||||
[status-im.utils.handlers :refer [>evt <sub]]
|
||||
[status-im.switcher.cards.styles :as styles]))
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
[quo.core :as quo]
|
||||
[status-im.ui.components.react :as react]
|
||||
[status-im.ui.components.icons.icons :as icons]
|
||||
[quo2.components.button :as quo2.button]))
|
||||
[quo2.components.buttons.button :as quo2.button]))
|
||||
|
||||
(def action-button-container
|
||||
{:align-items :center
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
(ns status-im.ui.components.topnav
|
||||
(:require
|
||||
[re-frame.core :as re-frame]
|
||||
[quo2.components.button :as quo2.button]
|
||||
[quo2.components.buttons.button :as quo2.button]
|
||||
[status-im.qr-scanner.core :as qr-scanner]
|
||||
[status-im.utils.handlers :refer [<sub]]
|
||||
[status-im.i18n.i18n :as i18n]
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
[status-im.ui.screens.chat.components.style :as styles]
|
||||
[re-frame.core :as re-frame]
|
||||
[quo2.foundations.colors :as quo2.colors :refer [theme-colors]]
|
||||
[quo2.components.button :as quo2.button]
|
||||
[quo2.components.text :as quo2.text]))
|
||||
[quo2.components.buttons.button :as quo2.button]
|
||||
[quo2.components.markdown.text :as quo2.text]))
|
||||
|
||||
(defn input-focus [text-input-ref]
|
||||
(some-> ^js (quo.react/current-ref text-input-ref) .focus))
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
[status-im.ui.screens.chat.photos :as photos]
|
||||
[reagent.core :as reagent]
|
||||
[clojure.string :as string]
|
||||
[quo2.components.button :as quo2.button]
|
||||
[quo2.components.buttons.button :as quo2.button]
|
||||
[quo2.reanimated :as reanimated]
|
||||
[quo2.gesture :as gesture]
|
||||
[quo.components.safe-area :as safe-area]))
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
[re-frame.core :as re-frame]
|
||||
[clojure.string :as string]
|
||||
[quo2.foundations.colors :as quo2.colors :refer [theme-colors]]
|
||||
[quo2.components.button :as quo2.button]
|
||||
[quo2.components.text :as quo2.text]
|
||||
[quo2.components.buttons.button :as quo2.button]
|
||||
[quo2.components.markdown.text :as quo2.text]
|
||||
[status-im.ui.screens.chat.photos :as photos]
|
||||
[status-im.constants :as constants]))
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
(:require [status-im.ui.components.react :as react]
|
||||
[clojure.string :as string]
|
||||
[status-im.ui.screens.chat.styles.message.datemark :as style]
|
||||
[quo2.components.text :as quo2.text]
|
||||
[quo2.components.markdown.text :as quo2.text]
|
||||
[quo2.foundations.colors :as quo2.colors]))
|
||||
|
||||
(defn chat-datemark [value]
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
[status-im.react-native.resources :as resources]
|
||||
[status-im.ui.components.topbar :as topbar]
|
||||
[quo2.foundations.colors :as quo2.colors]
|
||||
[quo2.components.button :as quo2.button]))
|
||||
[quo2.components.buttons.button :as quo2.button]))
|
||||
|
||||
(defn invitation-requests [chat-id admins]
|
||||
(let [current-pk @(re-frame/subscribe [:multiaccount/public-key])
|
||||
|
|
|
@ -5,14 +5,14 @@
|
|||
[status-im.ui.components.list.views :as list]
|
||||
[status-im.ui.components.react :as react]
|
||||
[quo2.components.separator :as separator]
|
||||
[quo2.components.text :as quo2.text]
|
||||
[quo2.components.button :as quo2.button]
|
||||
[quo2.components.counter :as quo2.counter]
|
||||
[quo2.components.filter-tags :as filter-tags]
|
||||
[quo2.components.filter-tag :as filter-tag]
|
||||
[quo2.components.markdown.text :as quo2.text]
|
||||
[quo2.components.buttons.button :as quo2.button]
|
||||
[quo2.components.counter.counter :as quo2.counter]
|
||||
[quo2.components.tags.filter-tags :as filter-tags]
|
||||
[quo2.components.tags.filter-tag :as filter-tag]
|
||||
[quo2.foundations.colors :as quo2.colors]
|
||||
[quo.components.safe-area :as safe-area]
|
||||
[quo2.components.tabs :as quo2.tabs]
|
||||
[quo2.components.tabs.tabs :as quo2.tabs]
|
||||
[status-im.ui.screens.chat.photos :as photos]
|
||||
[status-im.react-native.resources :as resources]
|
||||
[status-im.multiaccounts.core :as multiaccounts]
|
||||
|
@ -20,8 +20,8 @@
|
|||
[status-im.ui.components.plus-button :as plus-button]
|
||||
[status-im.utils.handlers :refer [<sub]]
|
||||
[status-im.ui.components.topnav :as topnav]
|
||||
[quo2.components.communities.community-card-view :as community-card]
|
||||
[quo2.components.communities.community-list-view :as community-list]
|
||||
[quo2.components.community.community-card-view :as community-card]
|
||||
[quo2.components.community.community-list-view :as community-list]
|
||||
[quo2.components.icon :as icons]))
|
||||
|
||||
(def selected-tab (reagent/atom :all))
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
[status-im.ui.components.list.views :as list]
|
||||
[status-im.ui.components.react :as react]
|
||||
[quo2.components.community-card-view :as community-card]
|
||||
[quo2.components.text :as quo2.text]
|
||||
[quo2.components.markdown.text :as quo2.text]
|
||||
[quo2.foundations.colors :as quo2.colors]
|
||||
[quo.components.safe-area :as safe-area]
|
||||
[quo2.components.tabs :as quo2.tabs]
|
||||
[quo2.components.tabs.tabs :as quo2.tabs]
|
||||
[status-im.ui.screens.chat.photos :as photos]
|
||||
[status-im.react-native.resources :as resources]
|
||||
[status-im.multiaccounts.core :as multiaccounts]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
(ns status-im.ui.screens.communities.sort-communities
|
||||
(:require [re-frame.core :as re-frame]
|
||||
[quo2.components.text :as text]
|
||||
[quo2.components.markdown.text :as text]
|
||||
[quo2.foundations.colors :as colors]
|
||||
[quo.core :as quo]
|
||||
[quo.theme :as theme]
|
||||
|
|
|
@ -24,13 +24,13 @@
|
|||
[status-im.ui.components.tabbar.core :as tabbar]
|
||||
[status-im.ui.components.invite.views :as invite]
|
||||
[status-im.utils.config :as config]
|
||||
[quo2.components.text :as quo2.text]
|
||||
[quo2.components.markdown.text :as quo2.text]
|
||||
[status-im.qr-scanner.core :as qr-scanner]
|
||||
[status-im.ui.components.chat-icon.screen :as chat-icon.screen]
|
||||
[status-im.ui.components.chat-icon.styles :as chat-icon.styles]
|
||||
[quo2.foundations.colors :as quo2.colors]
|
||||
[quo2.components.button :as quo2.button]
|
||||
[quo2.components.information-box :as information-box])
|
||||
[quo2.components.buttons.button :as quo2.button]
|
||||
[quo2.components.info.information-box :as information-box])
|
||||
(:require-macros [status-im.utils.views :as views]))
|
||||
|
||||
(defn home-tooltip-view []
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
[status-im.utils.core :as utils]
|
||||
[status-im.utils.datetime :as time]
|
||||
[status-im.ui.components.chat-icon.styles :as chat-icon.styles]
|
||||
[quo2.components.text :as quo2.text]
|
||||
[quo2.components.markdown.text :as quo2.text]
|
||||
[status-im.utils.utils :as utils.utils]
|
||||
[quo2.foundations.colors :as quo2.colors]))
|
||||
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
[status-im.ui.screens.wallet.buy-crypto.views :as buy-crypto]
|
||||
[quo2.foundations.colors :as quo2.colors]
|
||||
[status-im.utils.handlers :refer [<sub]]
|
||||
[quo2.components.text :as quo2.text]
|
||||
[quo2.components.button :as quo2.button]
|
||||
[quo2.components.tabs :as quo2.tabs])
|
||||
[quo2.components.markdown.text :as quo2.text]
|
||||
[quo2.components.buttons.button :as quo2.button]
|
||||
[quo2.components.tabs.tabs :as quo2.tabs])
|
||||
(:require-macros [status-im.utils.views :as views]))
|
||||
|
||||
(def state (reagent/atom {:tab :assets}))
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
[status-im.utils.utils :as utils.utils]
|
||||
[re-frame.core :as re-frame]
|
||||
[quo2.foundations.colors :as quo2.colors]
|
||||
[quo2.components.text :as quo2.text]))
|
||||
[quo2.components.markdown.text :as quo2.text]))
|
||||
|
||||
;; Note(rasom): sometimes `refreshing` might get stuck on iOS if action happened
|
||||
;; too fast. By updating this atom in 1s we ensure that `refreshing?` property
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
[status-im.qr-scanner.core :as qr-scanner]
|
||||
[status-im.keycard.login :as keycard.login]
|
||||
[quo2.foundations.colors :as quo2.colors]
|
||||
[quo2.components.button :as quo2.button]
|
||||
[quo2.components.text :as quo2.text]
|
||||
[quo2.components.tabs :as quo2.tabs]
|
||||
[quo2.components.buttons.button :as quo2.button]
|
||||
[quo2.components.markdown.text :as quo2.text]
|
||||
[quo2.components.tabs.tabs :as quo2.tabs]
|
||||
[status-im.ui.screens.wallet.accounts.common :as common]
|
||||
[status-im.ui.screens.wallet.account.views :as account.views]
|
||||
[quo.components.safe-area :as safe-area])
|
||||
|
|
Loading…
Reference in New Issue