From 66663bdfea09080e3e762e763d0ddfcd6ddf16cf Mon Sep 17 00:00:00 2001 From: Nam Le Date: Thu, 31 Aug 2023 00:25:10 +0700 Subject: [PATCH 1/2] fix cursor preivew --- src/components/Attachments/AttachmentCarousel/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Attachments/AttachmentCarousel/index.js b/src/components/Attachments/AttachmentCarousel/index.js index cec5f54508cb..6c87c3d2a86a 100644 --- a/src/components/Attachments/AttachmentCarousel/index.js +++ b/src/components/Attachments/AttachmentCarousel/index.js @@ -156,7 +156,7 @@ function AttachmentCarousel({report, reportActions, source, onNavigate, setDownl file={item.file} isAuthTokenRequired={item.isAuthTokenRequired} isFocused={activeSource === item.source} - onPress={() => canUseTouchScreen && setShouldShowArrows(!shouldShowArrows)} + onPress={ canUseTouchScreen ? () => setShouldShowArrows(!shouldShowArrows): undefined} isUsedInCarousel /> ), From a658fdf4eca49b956c0b641a6298c4f7754205ac Mon Sep 17 00:00:00 2001 From: Nam Le Date: Thu, 31 Aug 2023 01:24:54 +0700 Subject: [PATCH 2/2] fix lint --- src/components/Attachments/AttachmentCarousel/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Attachments/AttachmentCarousel/index.js b/src/components/Attachments/AttachmentCarousel/index.js index 6c87c3d2a86a..53c2c840d95d 100644 --- a/src/components/Attachments/AttachmentCarousel/index.js +++ b/src/components/Attachments/AttachmentCarousel/index.js @@ -156,7 +156,7 @@ function AttachmentCarousel({report, reportActions, source, onNavigate, setDownl file={item.file} isAuthTokenRequired={item.isAuthTokenRequired} isFocused={activeSource === item.source} - onPress={ canUseTouchScreen ? () => setShouldShowArrows(!shouldShowArrows): undefined} + onPress={canUseTouchScreen ? () => setShouldShowArrows(!shouldShowArrows) : undefined} isUsedInCarousel /> ),