Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Sjaak Schilperoort <[email protected]>
  • Loading branch information
1 parent 0b32108 commit b6d6281
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Lightbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ type Props = {
photos: string[]
title?: string
description?: string
content?: (currentImageIndex?: number) => JSX.Element | undefined
content?: (imageIndex?: number) => JSX.Element | undefined
style?: LightboxStyle
}

Expand All @@ -115,7 +115,7 @@ const Lightbox = ({ index, onClose, onDelete, onCrop, photos, title, description
FooterComponent={getLightboxFooterComponent(
title,
description,
content ? content(currentImageIndex) : undefined,
content?.(currentImageIndex),
style,
onPressDelete,
onPressCrop,
Expand Down

0 comments on commit b6d6281

Please sign in to comment.