From beddddcb579b7bd0a6f4d7d2a014a92a5399f3c6 Mon Sep 17 00:00:00 2001 From: Piotr P Date: Sat, 27 Apr 2024 14:23:29 +0200 Subject: hide alternative ratio buttons when using custom ratio --- src/view/com/modals/crop-image/CropImage.web.tsx | 64 +++++++++++++----------- 1 file changed, 34 insertions(+), 30 deletions(-) (limited to 'src') diff --git a/src/view/com/modals/crop-image/CropImage.web.tsx b/src/view/com/modals/crop-image/CropImage.web.tsx index a359ed44d..10cae2f17 100644 --- a/src/view/com/modals/crop-image/CropImage.web.tsx +++ b/src/view/com/modals/crop-image/CropImage.web.tsx @@ -117,36 +117,40 @@ export function Component({ maximumValue={3} containerStyle={styles.slider} /> - - - - - - - - - + {as === AspectRatio.Custom ? null : ( + <> + + + + + + + + + + + )}