[#12317] Gaps on 'recipient' screen in Wallet, 'add and edit favourites' screens in Browser, and in Profile after setting up ENS
Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
parent
e1dfaa4a6b
commit
c50130fd4b
|
@ -14,13 +14,13 @@
|
||||||
(let [input-name (reagent/atom name)]
|
(let [input-name (reagent/atom name)]
|
||||||
(fn []
|
(fn []
|
||||||
(let [edit? (not new)]
|
(let [edit? (not new)]
|
||||||
[kb-presentation/keyboard-avoiding-view {:style {:flex 1}}
|
[kb-presentation/keyboard-avoiding-view {:style {:flex 1}
|
||||||
[react/view {:flex 1}
|
:ignore-offset true}
|
||||||
[topbar/topbar
|
[topbar/topbar
|
||||||
{:modal? true
|
{:modal? true
|
||||||
:border-bottom true
|
:border-bottom true
|
||||||
:title (if edit? (i18n/label :t/edit-favourite) (i18n/label :t/new-favourite))}]
|
:title (if edit? (i18n/label :t/edit-favourite) (i18n/label :t/new-favourite))}]
|
||||||
[react/view {:style {:flex 1}}
|
[react/view {:flex 1}
|
||||||
[quo/text-input
|
[quo/text-input
|
||||||
{:container-style {:margin 16 :margin-top 10}
|
{:container-style {:margin 16 :margin-top 10}
|
||||||
:accessibility-label :bookmark-input
|
:accessibility-label :bookmark-input
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
(re-frame/dispatch [:browser/update-bookmark {:url url :name @input-name}])
|
(re-frame/dispatch [:browser/update-bookmark {:url url :name @input-name}])
|
||||||
(re-frame/dispatch [:browser/store-bookmark {:url url :name @input-name}]))
|
(re-frame/dispatch [:browser/store-bookmark {:url url :name @input-name}]))
|
||||||
(re-frame/dispatch [:navigate-back]))}
|
(re-frame/dispatch [:navigate-back]))}
|
||||||
(if edit? (i18n/label :t/save) (i18n/label :t/add-favourite))]}]]]))))
|
(if edit? (i18n/label :t/save) (i18n/label :t/add-favourite))]}]]))))
|
||||||
|
|
||||||
(defn new-bookmark []
|
(defn new-bookmark []
|
||||||
[screen @(re-frame/subscribe [:get-screen-params])])
|
[screen @(re-frame/subscribe [:get-screen-params])])
|
|
@ -68,7 +68,7 @@
|
||||||
:icon (if fav? :main-icons/delete :main-icons/favourite)
|
:icon (if fav? :main-icons/delete :main-icons/favourite)
|
||||||
:on-press #(hide-sheet-and-dispatch (if fav?
|
:on-press #(hide-sheet-and-dispatch (if fav?
|
||||||
[:browser/delete-bookmark url]
|
[:browser/delete-bookmark url]
|
||||||
[:navigate-to :new-bookmark {:url url :name name :new true}]))}]
|
[:open-modal :new-bookmark {:url url :name name :new true}]))}]
|
||||||
[quo/list-item
|
[quo/list-item
|
||||||
{:theme :accent
|
{:theme :accent
|
||||||
:title (i18n/label :t/share)
|
:title (i18n/label :t/share)
|
||||||
|
|
|
@ -387,6 +387,7 @@
|
||||||
|
|
||||||
{:name :my-profile
|
{:name :my-profile
|
||||||
:insets {:top false}
|
:insets {:top false}
|
||||||
|
:options {:topBar {:visible false}}
|
||||||
:component profile.user/my-profile}
|
:component profile.user/my-profile}
|
||||||
{:name :contacts-list
|
{:name :contacts-list
|
||||||
:options {:topBar {:title {:text (i18n/label :t/contacts)}}}
|
:options {:topBar {:title {:text (i18n/label :t/contacts)}}}
|
||||||
|
|
|
@ -246,7 +246,8 @@
|
||||||
(views/letsubs [{:keys [address resolved-address searching]} [:wallet/recipient]
|
(views/letsubs [{:keys [address resolved-address searching]} [:wallet/recipient]
|
||||||
search-filter [:search/recipient-filter]]
|
search-filter [:search/recipient-filter]]
|
||||||
(let [disabled? (or searching (not resolved-address))]
|
(let [disabled? (or searching (not resolved-address))]
|
||||||
[kb-presentation/keyboard-avoiding-view {:style {:flex 1}}
|
[kb-presentation/keyboard-avoiding-view {:style {:flex 1}
|
||||||
|
:ignore-offset true}
|
||||||
[react/view {:flex 1}
|
[react/view {:flex 1}
|
||||||
[recipient-topbar]
|
[recipient-topbar]
|
||||||
[search-input-wrapper]
|
[search-input-wrapper]
|
||||||
|
|
Loading…
Reference in New Issue