From 6ed26ec70c4780489772cb90f43221b760f541e5 Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Mon, 7 Jun 2021 15:04:51 -0400 Subject: [PATCH] a couple more fixes from CR --- .../lazy-app/Compress/Transform/index.tsx | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/client/lazy-app/Compress/Transform/index.tsx b/src/client/lazy-app/Compress/Transform/index.tsx index dfd53a2b..70bfaf20 100644 --- a/src/client/lazy-app/Compress/Transform/index.tsx +++ b/src/client/lazy-app/Compress/Transform/index.tsx @@ -1,11 +1,4 @@ -import { - h, - Component, - Fragment, - createRef, - FunctionComponent, - ComponentChildren, -} from 'preact'; +import { h, Component, Fragment, createRef } from 'preact'; import type { default as PinchZoom, ScaleToOpts, @@ -29,7 +22,6 @@ import type { SourceImage } from '../../Compress'; import { PreprocessorState } from 'client/lazy-app/feature-meta'; import Cropper, { CropBox } from './Cropper'; import CanvasImage from '../CanvasImage'; -import Expander from '../Options/Expander'; import Select from '../Options/Select'; import Checkbox from '../Options/Checkbox'; @@ -68,7 +60,6 @@ interface State { scale: number; editingScale: boolean; rotate: typeof ROTATE_ORIENTATIONS[number]; - // crop: false | CropBox; crop: CropBox; cropPreset: keyof typeof cropPresets | undefined; lockAspect: boolean; @@ -93,14 +84,6 @@ export default class Transform extends Component { pinchZoom = createRef(); scaleInput = createRef(); - // static getDerivedStateFromProps({ source, preprocessorState }: Props) { - // return { - // rotate: preprocessorState.rotate.rotate || 0, - // crop: preprocessorState.crop || false, - // flip: preprocessorState.flip || { horizontal: false, vertical: false }, - // }; - // } - componentWillReceiveProps( { source, preprocessorState }: Props, { crop, cropPreset }: State,