From cc34ae9b82bfc837de4d0b5b7b48d52646392e63 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Fri, 8 Dec 2023 00:24:01 +0000 Subject: [PATCH] Fix types --- src/view/com/lightbox/Lightbox.web.tsx | 12 ++++++++---- src/view/com/util/fab/FABInner.tsx | 1 + 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/view/com/lightbox/Lightbox.web.tsx b/src/view/com/lightbox/Lightbox.web.tsx index 498d5147f5..19228570d0 100644 --- a/src/view/com/lightbox/Lightbox.web.tsx +++ b/src/view/com/lightbox/Lightbox.web.tsx @@ -1,13 +1,17 @@ import React, {useCallback, useEffect, useState} from 'react' import { Image, + ImageStyle, TouchableOpacity, TouchableWithoutFeedback, StyleSheet, View, Pressable, } from 'react-native' -import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' +import { + FontAwesomeIcon, + FontAwesomeIconStyle, +} from '@fortawesome/react-native-fontawesome' import {colors, s} from 'lib/styles' import ImageDefaultHeader from './ImageViewing/components/ImageDefaultHeader' import {Text} from '../util/text/Text' @@ -116,7 +120,7 @@ function LightboxInner({ @@ -129,7 +133,7 @@ function LightboxInner({ accessibilityHint=""> @@ -143,7 +147,7 @@ function LightboxInner({ accessibilityHint=""> diff --git a/src/view/com/util/fab/FABInner.tsx b/src/view/com/util/fab/FABInner.tsx index 731d8bebbb..27a16117bd 100644 --- a/src/view/com/util/fab/FABInner.tsx +++ b/src/view/com/util/fab/FABInner.tsx @@ -65,6 +65,7 @@ const styles = StyleSheet.create({ borderRadius: 35, }, outer: { + // @ts-ignore web-only position: isWeb ? 'fixed' : 'absolute', zIndex: 1, },