about summary refs log tree commit diff
path: root/src/view/com/modals/LinkWarning.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-11-17 11:08:45 -0600
committerGitHub <noreply@github.com>2023-11-17 11:08:45 -0600
commit9c8a1b8a3118f6a6994a3c6cf8e5b70ef10049ab (patch)
treea92dedc55ce9f2bf5252ef3a5de6ca61ba2d90e3 /src/view/com/modals/LinkWarning.tsx
parent6c8f043e370393d593c14dc40cff86b062fc5c52 (diff)
downloadvoidsky-9c8a1b8a3118f6a6994a3c6cf8e5b70ef10049ab.tar.zst
Fix some type errors (#1952)
* Fix some low-hanging type errors

* Override scrollRef types on profile
Diffstat (limited to 'src/view/com/modals/LinkWarning.tsx')
-rw-r--r--src/view/com/modals/LinkWarning.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view/com/modals/LinkWarning.tsx b/src/view/com/modals/LinkWarning.tsx
index c63bc2a87..39e6cc3e6 100644
--- a/src/view/com/modals/LinkWarning.tsx
+++ b/src/view/com/modals/LinkWarning.tsx
@@ -79,7 +79,9 @@ export function Component({text, href}: {text: string; href: string}) {
           <Button
             testID="cancelBtn"
             type="default"
-            onPress={() => closeModal()}
+            onPress={() => {
+              closeModal()
+            }}
             accessibilityLabel={_(msg`Cancel`)}
             accessibilityHint=""
             label="Cancel"