Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Rename

Manav Rathi4de5b9b8bbb8
diff --git a/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsx b/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsx
index b0ad5bff00..1699245d33 100644
--- a/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsx
+++ b/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay.tsx
@@ -1035,7 +1035,7 @@ const CropOverlayRegionTemplate = styled("div")({
pointerEvents: "none",
});
-const PRESET_ASPECT_RATIOS = [
+const presetAspectRatios = [
{
width: 16,
height: 9,
@@ -1241,7 +1241,7 @@ const TransformMenu: React.FC<CommonMenuProps> = ({
/>
</RowButtonGroup>
<RowButtonGroup sx={{ mb: "1rem" }}>
- {PRESET_ASPECT_RATIOS.map((ratio, index) => (
+ {presetAspectRatios.map((ratio, index) => (
<Fragment key={index}>
<RowButton
disabled={canvasLoading}
@@ -1252,14 +1252,14 @@ const TransformMenu: React.FC<CommonMenuProps> = ({
ratio.height,
)}
/>
- {index !== PRESET_ASPECT_RATIOS.length - 1 && (
+ {index !== presetAspectRatios.length - 1 && (
<RowButtonDivider />
)}
</Fragment>
))}
</RowButtonGroup>
<RowButtonGroup sx={{ mb: "1rem" }}>
- {PRESET_ASPECT_RATIOS.map((ratio, index) => (
+ {presetAspectRatios.map((ratio, index) => (
<Fragment key={index}>
<RowButton
key={index}
@@ -1271,7 +1271,7 @@ const TransformMenu: React.FC<CommonMenuProps> = ({
ratio.width,
)}
/>
- {index !== PRESET_ASPECT_RATIOS.length - 1 && (
+ {index !== presetAspectRatios.length - 1 && (
<RowButtonDivider />
)}
</Fragment>