diff --git a/src/components/MoneyTemporaryForRefactorRequestConfirmationList.js b/src/components/MoneyTemporaryForRefactorRequestConfirmationList.js index 3c059372a4a3..65572499c2d1 100755 --- a/src/components/MoneyTemporaryForRefactorRequestConfirmationList.js +++ b/src/components/MoneyTemporaryForRefactorRequestConfirmationList.js @@ -868,7 +868,6 @@ function MoneyTemporaryForRefactorRequestConfirmationList({ // We don't support scaning password protected PDF receipt enabled={!isAttachmentInvalid} onPassword={() => setIsAttachmentInvalid(true)} - isClickable={false} /> ) : ( {}, isClickable = true}: PDFThumbnailProps) { +function PDFThumbnail({previewSourceURL, style, isAuthTokenRequired = false, enabled = true, onPassword = () => {}}: PDFThumbnailProps) { const styles = useThemeStyles(); useEffect(() => { @@ -33,13 +32,12 @@ function PDFThumbnail({previewSourceURL, style, isAuthTokenRequired = false, ena onPassword(); }} > - + + + ), - [isAuthTokenRequired, previewSourceURL, onPassword, isClickable], + [isAuthTokenRequired, previewSourceURL, onPassword], ); return ( diff --git a/src/components/PDFThumbnail/types.ts b/src/components/PDFThumbnail/types.ts index 8c46c145887d..11253e462aca 100644 --- a/src/components/PDFThumbnail/types.ts +++ b/src/components/PDFThumbnail/types.ts @@ -15,9 +15,6 @@ type PDFThumbnailProps = { /** Callback to call if PDF is password protected */ onPassword?: () => void; - - /** Whether the PDF thumbnail is clickable */ - isClickable?: boolean; }; export default PDFThumbnailProps;