Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan committed May 2, 2024
1 parent d208e4b commit 98fe47b
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/components/Lightbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const getLightboxFooterComponent =
<Text style={[styles.description, style?.descriptionTextStyle]}>{description}</Text>
</View>
)}
<View>
<View style={{ flexDirection: 'row' }}>
{onPressDelete && (
<IconButton
testID="delete-photo"
Expand All @@ -79,7 +79,7 @@ type LightboxStyle = {
type Props = {
index?: number
onClose: () => void
onDelete: (imageIndex: number) => void
onDelete?: (imageIndex: number) => void
photos: string[]
title?: string
description?: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,13 @@ exports[`ContentImage Interaction Click the image to show the lightbox 1`] = `
Title
</Text>
</View>
<View
style={
{
"flexDirection": "row",
}
}
/>
</View>
</RCTSafeAreaView>
</View>
Expand Down
40 changes: 35 additions & 5 deletions src/components/__tests__/__snapshots__/Lightbox.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,13 @@ exports[`Lightbox Rendering First photo 1`] = `
11/26/2020 2:37 PM
</Text>
</View>
<View
style={
{
"flexDirection": "row",
}
}
/>
</View>
</RCTSafeAreaView>
</View>
Expand Down Expand Up @@ -763,7 +770,15 @@ exports[`Lightbox Rendering Only a photo 1`] = `
"paddingVertical": 8,
}
}
/>
>
<View
style={
{
"flexDirection": "row",
}
}
/>
</View>
</RCTSafeAreaView>
</View>
</View>
Expand Down Expand Up @@ -1175,13 +1190,21 @@ exports[`Lightbox Rendering Photo with species name, date and user 1`] = `
<View
style={
{
"marginVertical": 4,
"flexDirection": "row",
}
}
>
<Text>
Jan de Vogelaar
</Text>
<View
style={
{
"marginVertical": 4,
}
}
>
<Text>
Jan de Vogelaar
</Text>
</View>
</View>
</View>
</RCTSafeAreaView>
Expand Down Expand Up @@ -1592,6 +1615,13 @@ exports[`Lightbox Rendering Second photo 1`] = `
11/26/2020 2:37 PM
</Text>
</View>
<View
style={
{
"flexDirection": "row",
}
}
/>
</View>
</RCTSafeAreaView>
</View>
Expand Down

0 comments on commit 98fe47b

Please sign in to comment.