Skip to content

Commit

Permalink
fix: replace deprecated component
Browse files Browse the repository at this point in the history
  • Loading branch information
codemaster115 committed Apr 30, 2024
1 parent 94fc8bc commit 2362c34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
10 changes: 0 additions & 10 deletions src/status_im/contexts/profile/settings/header/style.cljs
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
(ns status-im.contexts.profile.settings.header.style
(:require [quo.foundations.colors :as colors]))

(defn header-view
[customization-color theme]
{:background-color (colors/resolve-color customization-color theme 40)
:min-height 100
:flex 1})

(def avatar-row-wrapper
{:display :flex
:padding-left 16
Expand All @@ -17,10 +11,6 @@
:justify-content :space-between
:flex-direction :row})

(def title-container
{:padding-horizontal 20
:padding-vertical 12})

(defn header-middle-shape
[background-color]
{:background-color background-color
Expand Down
9 changes: 3 additions & 6 deletions src/status_im/contexts/profile/settings/header/view.cljs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
(ns status-im.contexts.profile.settings.header.view
(:require [clojure.string :as string]
[quo.core :as quo]
(:require [quo.core :as quo]
[quo.foundations.colors :as colors]
[quo.theme]
[react-native.core :as rn]
Expand All @@ -25,7 +24,6 @@
customization-color (rf/sub [:profile/customization-color])
full-name (profile.utils/displayed-name profile)
profile-picture (profile.utils/photo profile)
emoji-string (string/join emoji-hash)
{:keys [status-title status-icon]} (header.utils/visibility-status-type-data status)
border-theme app-theme]
[:<>
Expand Down Expand Up @@ -56,9 +54,8 @@
:theme :dark
:content (fn [] [visibility-sheet/view])}])}
status-title]]]
[quo/text-combinations
[quo/page-top
{:title-accessibility-label :username
:container-style style/title-container
:emoji-hash emoji-string
:emoji-dash emoji-hash
:description bio
:title full-name}]]))

0 comments on commit 2362c34

Please sign in to comment.