Skip to content

Commit

Permalink
fix: migrate issue for some previews
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen-ghafouri committed Sep 15, 2023
1 parent 8acc5e3 commit 1da57ee
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
:value "48"}
{:key 80
:value "80"}]}
{:label "Emoji"
:key :emoji
:type :text}
{:key :emoji :type :text}
(preview/customization-color-option)])

(defn view
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(ns status-im2.contexts.quo-preview.avatars.icon-avatar
(:require [quo2.components.avatars.icon-avatar :as quo]
(:require [quo2.core :as quo]
[reagent.core :as reagent]
[status-im2.contexts.quo-preview.preview :as preview]))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(ns status-im2.contexts.quo-preview.avatars.user-avatar
(:require [quo2.components.avatars.user-avatar.view :as quo]
(:require [quo2.core :as quo]
[reagent.core :as reagent]
[status-im2.common.resources :as resources]
[status-im2.contexts.quo-preview.preview :as preview]))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(ns status-im2.contexts.quo-preview.avatars.wallet-user-avatar
(:require [quo2.components.avatars.wallet-user-avatar :as quo]
(:require [quo2.core :as quo]
[reagent.core :as reagent]
[status-im2.contexts.quo-preview.preview :as preview]))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
[quo/text {:style text-style}
"Group chats are always end-to-end encrypted with secure cryptographic keys. Only the group chat members will have access to the messages in it. Status doesn't have the keys and can't access any messages by design."]]))

(defn documenation-drawer
(defn documentation-drawer
[title show-button? button-label expanded? shell?]
[quo/documentation-drawers
{:title title
Expand Down Expand Up @@ -99,11 +99,11 @@
{:container-style {:margin-horizontal 40
:margin-bottom 20}
:on-press #(rf/dispatch [:show-bottom-sheet
{:content (constantly [documenation-drawer @title
{:content (constantly [documentation-drawer @title
@show-button?
@button-label expanded? @shell?])
:expandable? @show-button?
:shell? @shell?
:expanded? @expanded?}])}
"Open drawer"]
[documenation-drawer @title @show-button? @button-label expanded?]])))
[documentation-drawer @title @show-button? @button-label expanded?]])))
2 changes: 1 addition & 1 deletion src/status_im2/contexts/quo_preview/info/info_message.cljs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(ns status-im2.contexts.quo-preview.info.info-message
(:require [quo2.components.info.info-message :as quo]
(:require [quo2.core :as quo]
[reagent.core :as reagent]
[status-im2.contexts.quo-preview.preview :as preview]))

Expand Down
4 changes: 2 additions & 2 deletions src/status_im2/contexts/quo_preview/main.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
[status-im2.contexts.quo-preview.dividers.new-messages :as new-messages]
[status-im2.contexts.quo-preview.dividers.strength-divider :as strength-divider]
[status-im2.contexts.quo-preview.drawers.action-drawers :as action-drawers]
[status-im2.contexts.quo-preview.drawers.documentation-drawers :as documenation-drawers]
[status-im2.contexts.quo-preview.drawers.documentation-drawers :as documentation-drawers]
[status-im2.contexts.quo-preview.drawers.drawer-buttons :as drawer-buttons]
[status-im2.contexts.quo-preview.drawers.drawer-top :as drawer-top]
[status-im2.contexts.quo-preview.drawers.permission-drawers :as permission-drawers]
Expand Down Expand Up @@ -209,7 +209,7 @@
:drawers [{:name :action-drawers
:component action-drawers/view}
{:name :documentation-drawer
:component documenation-drawers/view}
:component documentation-drawers/view}
{:name :drawer-buttons
:component drawer-buttons/view}
{:name :drawer-top
Expand Down

0 comments on commit 1da57ee

Please sign in to comment.