Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Aug 26, 2024
1 parent d316443 commit a436119
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function BaseAttachmentViewPdf({
}

// When a pdf is shown in a carousel, we want to disable the pager scroll when the pdf is zoomed in
if (!!attachmentCarouselPagerContext?.pagerRef) {
if (attachmentCarouselPagerContext?.pagerRef) {
attachmentCarouselPagerContext.onScaleChanged(newScale);
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/Attachments/AttachmentView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ import type {ColorValue} from '@styles/utils/types';
import variables from '@styles/variables';
import ONYXKEYS from '@src/ONYXKEYS';
import type {Transaction} from '@src/types/onyx';

Check failure on line 26 in src/components/Attachments/AttachmentView/index.tsx

View workflow job for this annotation

GitHub Actions / Run ESLint

Delete `';⏎import·AttachmentCarouselPagerContext·from·'@components/Attachments/AttachmentCarousel/Pager/AttachmentCarouselPagerContext`
import AttachmentCarouselPagerContext from '@components/Attachments/AttachmentCarousel/Pager/AttachmentCarouselPagerContext';
import AttachmentViewImage from './AttachmentViewImage';
import AttachmentViewPdf from './AttachmentViewPdf';
import AttachmentViewVideo from './AttachmentViewVideo';
import DefaultAttachmentView from './DefaultAttachmentView';
import HighResolutionInfo from './HighResolutionInfo';
import AttachmentCarouselPagerContext from '../AttachmentCarousel/Pager/AttachmentCarouselPagerContext';

type AttachmentViewOnyxProps = {
transaction: OnyxEntry<Transaction>;
Expand Down

0 comments on commit a436119

Please sign in to comment.