From c134239c57c20a2f90d66322aaab115b729484f5 Mon Sep 17 00:00:00 2001 From: Ishpaul Singh Date: Tue, 14 May 2024 03:40:00 +0530 Subject: [PATCH] prettier --- src/components/PDFView/index.tsx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/components/PDFView/index.tsx b/src/components/PDFView/index.tsx index bb30817fb9ef..76daba9ce0f6 100644 --- a/src/components/PDFView/index.tsx +++ b/src/components/PDFView/index.tsx @@ -3,14 +3,13 @@ import 'core-js/features/array/at'; import type {CSSProperties} from 'react'; import React, {memo, useCallback, useEffect, useState} from 'react'; import {PDFPreviewer} from 'react-fast-pdf'; -import {ActivityIndicator, View} from 'react-native'; +import {View} from 'react-native'; import {withOnyx} from 'react-native-onyx'; import FullScreenLoadingIndicator from '@components/FullscreenLoadingIndicator'; import PressableWithoutFeedback from '@components/Pressable/PressableWithoutFeedback'; import useLocalize from '@hooks/useLocalize'; import usePrevious from '@hooks/usePrevious'; import useStyleUtils from '@hooks/useStyleUtils'; -import useTheme from '@hooks/useTheme'; import useThemeStyles from '@hooks/useThemeStyles'; import useWindowDimensions from '@hooks/useWindowDimensions'; import variables from '@styles/variables'; @@ -27,7 +26,6 @@ function PDFView({onToggleKeyboard, fileName, onPress, isFocused, sourceURL, max const [isKeyboardOpen, setIsKeyboardOpen] = useState(false); const styles = useThemeStyles(); const StyleUtils = useStyleUtils(); - const theme = useTheme(); const {windowHeight, isSmallScreenWidth} = useWindowDimensions(); const prevWindowHeight = usePrevious(windowHeight); const {translate} = useLocalize(); @@ -101,7 +99,17 @@ function PDFView({onToggleKeyboard, fileName, onPress, isFocused, sourceURL, max maxCanvasWidth={maxCanvasWidth} maxCanvasHeight={maxCanvasHeight} maxCanvasArea={maxCanvasArea} - LoadingComponent={} + LoadingComponent={ + + } shouldShowErrorComponent={false} onLoadError={onLoadError} renderPasswordForm={({isPasswordInvalid, onSubmit, onPasswordChange}) => (