aboutsummaryrefslogtreecommitdiff
path: root/src/components/comments/ZoomInCropper.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-07-07 14:38:10 -0400
committerIvan Chen <ivan@tagg.id>2021-07-09 15:55:18 -0400
commit2697a10f65f84eb44757bc3b37c09bdc1989de5d (patch)
treec2fcf508974c203d56080ccf7b43d4e4aeab5a83 /src/components/comments/ZoomInCropper.tsx
parentdda5964a5f334655826f36023025f90cb86364c8 (diff)
Remove title, Cleanup caption screen route props, Add new screen
Diffstat (limited to 'src/components/comments/ZoomInCropper.tsx')
-rw-r--r--src/components/comments/ZoomInCropper.tsx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/components/comments/ZoomInCropper.tsx b/src/components/comments/ZoomInCropper.tsx
index 7fa88f6e..4de82418 100644
--- a/src/components/comments/ZoomInCropper.tsx
+++ b/src/components/comments/ZoomInCropper.tsx
@@ -25,7 +25,7 @@ export const ZoomInCropper: React.FC<ZoomInCropperProps> = ({
route,
navigation,
}) => {
- const {screenType, title, media} = route.params;
+ const {screenType, media} = route.params;
const [aspectRatio, setAspectRatio] = useState<number>(1);
// Stores the coordinates of the cropped image
@@ -77,7 +77,6 @@ export const ZoomInCropper: React.FC<ZoomInCropperProps> = ({
.then((croppedURL) => {
navigation.navigate('CaptionScreen', {
screenType,
- title: title,
media: {
uri: croppedURL,
isVideo: false,
@@ -93,7 +92,6 @@ export const ZoomInCropper: React.FC<ZoomInCropperProps> = ({
) {
navigation.navigate('CaptionScreen', {
screenType,
- title: title,
media,
});
}