-
Notifications
You must be signed in to change notification settings - Fork 984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#21198] Sync error button covered #21454
base: develop
Are you sure you want to change the base?
Conversation
Discussion related: CC: @Francesca-G |
@@ -17,6 +18,7 @@ | |||
:bottom 0 | |||
:left 0 | |||
:right 0 | |||
:padding-top (safe-area/get-top) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Used the safe area for the top
Jenkins Builds
|
[quo/bottom-actions | ||
{:actions (if logged-in? :one-action :two-actions) | ||
:blur? true | ||
:button-one-label (i18n/label :t/recovery-phrase) | ||
:button-one-props {:type :primary | ||
:accessibility-label :try-seed-phrase-button | ||
:customization-color profile-color | ||
:container-style {:flex 1} | ||
:size 40 | ||
:on-press navigate-to-enter-seed-phrase} | ||
(if logged-in? :button-one-label :button-two-label) | ||
(i18n/label :t/try-again) | ||
(if logged-in? :button-one-props :button-two-props) | ||
{:type (if logged-in? :primary :grey) | ||
:accessibility-label :try-again-later-button | ||
:customization-color profile-color | ||
:container-style {:flex 1} | ||
:size 40 | ||
:on-press #(try-again logged-in?)}}]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I refactored this code, but it's very interesting.
@ilmotta FYI, just in case you didn't know, this code has the following structure:
{:foo 1
:bar 2
(if true :foo :x) 10
(if true :bar :y) 20}
so weird, because this is invalid in Clojure, it throws (as expected), an exception due to duplicated keys, but in Clojurescript, it overrides the previously written keys:
;; =>
{:foo 10
:bar 20}
as this may not work in a future release (idk) I refactored to be Clojure-valid
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strange indeed @ulisesmac. If we see this type of code we can make an effort to refactor if possible because we have other ways, like using cond->
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @ulisesmac
fixes #21198
Summary
This PR fixes wrong paddings (safe-area related) in a screen.
Platforms
status: ready