about summary refs log tree commit diff
path: root/src/view/com/util/ViewSelector.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-08-25 10:48:38 -0500
committerGitHub <noreply@github.com>2023-08-25 08:48:38 -0700
commitb15a435069a4721214a542af0bd0d24c8ae2066d (patch)
treeeaf95bd63268786b9e53f61763d80537b15f4470 /src/view/com/util/ViewSelector.tsx
parenta0dca81a749269839dc78c1952305ba4d0f5568d (diff)
downloadvoidsky-b15a435069a4721214a542af0bd0d24c8ae2066d.tar.zst
Eslint updates (#1281)
* eslint: Update eslintrc

* eslint: Strings must use singlequote  quotes

* eslint: expected { after if-condition

* eslint: update warnings

* a little cleanup

* remove conflicted file

---------

Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Co-authored-by: Paul Frazee <pfrazee@gmail.com>
Diffstat (limited to 'src/view/com/util/ViewSelector.tsx')
-rw-r--r--src/view/com/util/ViewSelector.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/com/util/ViewSelector.tsx b/src/view/com/util/ViewSelector.tsx
index a25ca4d8e..cd3299284 100644
--- a/src/view/com/util/ViewSelector.tsx
+++ b/src/view/com/util/ViewSelector.tsx
@@ -174,8 +174,8 @@ export function Selector({
         <View
           style={[pal.view, styles.outer]}
           onLayout={e => {
-            const {height} = e.nativeEvent.layout
-            setHeight(height || 60)
+            const {height: layoutHeight} = e.nativeEvent.layout
+            setHeight(layoutHeight || 60)
           }}>
           {items.map((item, i) => {
             const selected = i === selectedIndex