Skip to content

Commit

Permalink
refactor: keyboardShouldPersistTaps to kebab-case
Browse files Browse the repository at this point in the history
  • Loading branch information
yqrashawn committed Apr 14, 2023
1 parent b395d30 commit 3e76ee8
Show file tree
Hide file tree
Showing 74 changed files with 89 additions and 89 deletions.
2 changes: 1 addition & 1 deletion src/quo/previews/bottom_sheet.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]]))
2 changes: 1 addition & 1 deletion src/quo/previews/button.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])
2 changes: 1 addition & 1 deletion src/quo/previews/header.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:data all-props
:render-fn render-item
:key-fn str}]])
2 changes: 1 addition & 1 deletion src/quo/previews/lists.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:data all-props
:render-fn render-item
Expand Down
2 changes: 1 addition & 1 deletion src/quo/previews/text.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:data all-props
:render-fn render-item
Expand Down
2 changes: 1 addition & 1 deletion src/quo/previews/text_input.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:data all-props
:render-fn render-item
Expand Down
2 changes: 1 addition & 1 deletion src/quo/previews/tooltip.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:data all-props
:render-fn render-item
:key-fn str}]])
2 changes: 1 addition & 1 deletion src/status_im/ui/screens/chat/components/input.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@
[rn/view
{:style {:height height}}
[list/flat-list
{:keyboardShouldPersistTaps :always
{:keyboard-should-persist-taps :always
:footer [rn/view {:style {:height 8}}]
:header [rn/view {:style {:height 8}}]
:data suggestions
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/ui/screens/contacts_list/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@
:render-fn contacts-list-item
:default-separator? true
:enableEmptySections true
:keyboardShouldPersistTaps :always}]))
:keyboard-should-persist-taps :always}]))
2 changes: 1 addition & 1 deletion src/status_im/ui/screens/currency_settings/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@
:key-fn :code
:render-data currency-id
:render-fn render-currency
:keyboardShouldPersistTaps :always}]]]))
:keyboard-should-persist-taps :always}]]]))
2 changes: 1 addition & 1 deletion src/status_im/ui/screens/ens/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
;;NOTE required so that switching custom-domain
;;works on first tap and persists keyboard
;;instead of dismissing keyboard and requiring two taps
:keyboardShouldPersistTaps :always}
:keyboard-should-persist-taps :always}
[react/view {:style {:flex 1}}
[react/view
{:style {:flex 1
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/ui/screens/group/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
:key-fn :public-key
:render-data render-data
:render-fn render-fn
:keyboardShouldPersistTaps :always}])
:keyboard-should-persist-taps :always}])

(defn no-contacts
[{:keys [no-contacts]}]
Expand Down
2 changes: 1 addition & 1 deletion src/status_im/ui/screens/multiaccounts/login/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
banner-hidden [:keycard/banner-hidden]]
[react/keyboard-avoiding-view {:style ast/multiaccounts-view}
[react/scroll-view
{:keyboardShouldPersistTaps :always
{:keyboard-should-persist-taps :always
:style styles/login-view}
[react/view styles/login-badge-container
[multiaccount-login-badge multiaccount]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
:elevation 5
:max-height (/ max-y 2)})}
[rn/flat-list
{:keyboardShouldPersistTaps :always
{:keyboard-should-persist-taps :always
:data (vals suggestions)
:key-fn :key
:render-fn mention-item
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
[rn/view {:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])
8 changes: 4 additions & 4 deletions src/status_im2/contexts/quo_preview/avatars/user_avatar.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
{:background-color (colors/theme-colors colors/white colors/neutral-90)
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:header [cool-preview]
:key-fn str}]])
{:flex 1
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])
2 changes: 1 addition & 1 deletion src/status_im2/contexts/quo_preview/banners/banner.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])
2 changes: 1 addition & 1 deletion src/status_im2/contexts/quo_preview/buttons/button.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])
8 changes: 4 additions & 4 deletions src/status_im2/contexts/quo_preview/code/snippet.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
{:background-color (colors/theme-colors colors/white colors/neutral-90)
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:header [cool-preview]
:key-fn str}]])
{:flex 1
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])
14 changes: 7 additions & 7 deletions src/status_im2/contexts/quo_preview/colors/color_picker.cljs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(ns status-im2.contexts.quo-preview.colors.color-picker
(:require [react-native.core :as rn]
(:require [quo2.core :as quo]
[quo2.foundations.colors :as colors]
[reagent.core :as reagent]
[quo2.core :as quo]
[react-native.blur :as blur]
[react-native.core :as rn]
[reagent.core :as reagent]
[status-im2.contexts.quo-preview.preview :as preview]))

(def descriptor
Expand Down Expand Up @@ -39,8 +39,8 @@
colors/neutral-95)
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:header [cool-preview]
:key-fn str}]])
{:flex 1
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])

Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])

Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])
2 changes: 1 addition & 1 deletion src/status_im2/contexts/quo_preview/counter/counter.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])
2 changes: 1 addition & 1 deletion src/status_im2/contexts/quo_preview/dividers/date.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@
[rn/flat-list
{:flex 1
:nestedScrollEnabled true
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn (fn [_ index] (str "actions-drawers-" index))}]])
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@
[rn/flat-list
{:flex 1
:nestedScrollEnabled true
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn :id}]])
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@
{:flex 1
:flex-grow 1
:nestedScrollEnabled true
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])
2 changes: 1 addition & 1 deletion src/status_im2/contexts/quo_preview/info/info_message.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])
2 changes: 1 addition & 1 deletion src/status_im2/contexts/quo_preview/inputs/input.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,6 @@
:flex 1}}
[rn/flat-list
{:style {:flex 1}
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]]])
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]]])
2 changes: 1 addition & 1 deletion src/status_im2/contexts/quo_preview/markdown/text.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]])
2 changes: 1 addition & 1 deletion src/status_im2/contexts/quo_preview/messages/author.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@
:flex 1}
[rn/flat-list
{:flex 1
:keyboardShouldPersistTaps :always
:keyboard-should-persist-taps :always
:header [cool-preview]
:key-fn str}]]])
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@
{:flex 1
:header [preview]
:key-fn str
:keyboardShouldPersistTaps :always}]])
:keyboard-should-persist-taps :always}]])
Loading

0 comments on commit 3e76ee8

Please sign in to comment.