Skip to content

Commit

Permalink
[#17288] refactor: migrate messages gap preview to new api
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen-ghafouri committed Sep 15, 2023
1 parent 7ff936a commit 87e97f4
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions src/status_im2/contexts/quo_preview/messages/gap.cljs
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
(ns status-im2.contexts.quo-preview.messages.gap
(:require [quo2.components.messages.gap :as gap]
[react-native.core :as rn]
(:require [quo2.core :as quo]
[reagent.core :as reagent]
[utils.i18n :as i18n]
[status-im2.contexts.quo-preview.preview :as preview]))
[status-im2.contexts.quo-preview.preview :as preview]
[utils.i18n :as i18n]))

(def descriptor
[{:label "Timestamp Far"
:key :timestamp-far
:type :text}
{:label "Timestamp Near"
:key :timestamp-near
:type :text}])
[{:key :timestamp-far :type :text}
{:key :timestamp-near :type :text}])

(defn preview-messages-gap
[]
Expand All @@ -22,9 +17,7 @@
:warning-label (i18n/label :messages-gap-warning)})]
(fn []
[preview/preview-container
{:state state
:descriptor descriptor}
[rn/view
{:padding-vertical 60
:align-items :center}
[gap/gap @state]]])))
{:state state
:descriptor descriptor
:component-container-style {:padding-vertical 60}}
[quo/gap @state]])))

0 comments on commit 87e97f4

Please sign in to comment.