diff options
Diffstat (limited to 'src/view/com/util/forms')
-rw-r--r-- | src/view/com/util/forms/Button.tsx | 1 | ||||
-rw-r--r-- | src/view/com/util/forms/DropdownButton.tsx | 2 | ||||
-rw-r--r-- | src/view/com/util/forms/NativeDropdown.web.tsx | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/src/view/com/util/forms/Button.tsx b/src/view/com/util/forms/Button.tsx index 62ef2c4f1..96b49a003 100644 --- a/src/view/com/util/forms/Button.tsx +++ b/src/view/com/util/forms/Button.tsx @@ -31,6 +31,7 @@ export type ButtonType = // Augment type for react-native-web (see https://github.com/necolas/react-native-web/issues/1684#issuecomment-766451866) declare module 'react-native' { interface PressableStateCallbackType { + // @ts-ignore web only hovered?: boolean focused?: boolean } diff --git a/src/view/com/util/forms/DropdownButton.tsx b/src/view/com/util/forms/DropdownButton.tsx index f0751e45b..6cb4b9557 100644 --- a/src/view/com/util/forms/DropdownButton.tsx +++ b/src/view/com/util/forms/DropdownButton.tsx @@ -87,7 +87,7 @@ export function DropdownButton({ }: PropsWithChildren<DropdownButtonProps>) { const {_} = useLingui() - const ref1 = useRef<TouchableOpacity>(null) + const ref1 = useRef<View>(null) const ref2 = useRef<View>(null) const onPress = (e: GestureResponderEvent) => { diff --git a/src/view/com/util/forms/NativeDropdown.web.tsx b/src/view/com/util/forms/NativeDropdown.web.tsx index 364e10d10..c1a0b8096 100644 --- a/src/view/com/util/forms/NativeDropdown.web.tsx +++ b/src/view/com/util/forms/NativeDropdown.web.tsx @@ -229,6 +229,7 @@ const getKey = (label: string, index: number, id?: string) => { return `${label}_${index}` } +// @ts-expect-error - web only styles. the only style that should be broken here is `outline` const styles = StyleSheet.create({ separator: { height: 1, |