Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yqrashawn committed Jun 6, 2023
1 parent c3065c9 commit a440ef3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/quo2/components/inputs/title_input/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
:default-value default-value
:accessibility-label :profile-title-input
:keyboard-appearance (theme/theme-value :light :dark override-theme)
:on-focus #(swap! focused? (fn [] true))
:on-blur #(swap! focused? (fn [] false))
:on-focus #(swap! focused? (constantly true))
:on-blur #(swap! focused? (constantly false))
:input-mode :text
:on-change-text on-change
:editable (not disabled?)
Expand Down
2 changes: 1 addition & 1 deletion src/status_im2/contexts/communities/discover/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
[rn/view
{:style style/featured-list-container
:on-layout #(swap! view-size
(fn []
(fn [_]
(- (oops/oget % "nativeEvent.layout.width") 40)))}
(when-not (= @view-size 0)
[rn/flat-list
Expand Down
4 changes: 2 additions & 2 deletions src/status_im2/contexts/onboarding/create_profile/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@
(let [will-show-listener (oops/ocall rn/keyboard
"addListener"
"keyboardWillShow"
#(swap! keyboard-shown? (fn [] true)))
#(swap! keyboard-shown? (constantly true)))
will-hide-listener (oops/ocall rn/keyboard
"addListener"
"keyboardWillHide"
#(swap! keyboard-shown? (fn [] false)))]
#(swap! keyboard-shown? (constantly false)))]
(fn []
(fn []
(oops/ocall will-show-listener "remove")
Expand Down

0 comments on commit a440ef3

Please sign in to comment.