From be8db33349279fd12de61523d32504ab56556123 Mon Sep 17 00:00:00 2001 From: Siddarth Kumar Date: Fri, 19 Aug 2022 20:50:45 +0530 Subject: [PATCH] refactor to accept background-color property (#13764) Refactoring copyable-text component to accept background-color property. Fix case of nil Trying to sign --- src/status_im/ui/components/copyable_text.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/status_im/ui/components/copyable_text.cljs b/src/status_im/ui/components/copyable_text.cljs index 33a215adea..e7781ea01f 100644 --- a/src/status_im/ui/components/copyable_text.cljs +++ b/src/status_im/ui/components/copyable_text.cljs @@ -81,6 +81,7 @@ (defn copyable-text-view [{:keys [label container-style]} content] (let [cue-atom (reagent/atom false) + background-color (or (get container-style :background-color) colors/white) width (reagent/atom 0) height (reagent/atom 0) anim-y (animation/create-value 0) @@ -120,5 +121,5 @@ :underlay-color colors/black :on-press copy-fn :on-long-press copy-fn} - [react/view {:background-color colors/white} + [react/view {:background-color background-color} content]]]))})))