Fix capitalization in media editor variable name

This commit is contained in:
Evan Hahn 2021-12-20 17:31:38 -06:00 committed by GitHub
parent 0163ef203b
commit 327a38a552
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -362,7 +362,7 @@ export const MediaEditor = ({
const [canRedo, setCanRedo] = useState(false); const [canRedo, setCanRedo] = useState(false);
const [canUndo, setCanUndo] = useState(false); const [canUndo, setCanUndo] = useState(false);
const [canCrop, setCanCrop] = useState(false); const [canCrop, setCanCrop] = useState(false);
const [cropAspectRatioLock, setcropAspectRatioLock] = useState(false); const [cropAspectRatioLock, setCropAspectRatioLock] = useState(false);
const [drawTool, setDrawTool] = useState<DrawTool>(DrawTool.Pen); const [drawTool, setDrawTool] = useState<DrawTool>(DrawTool.Pen);
const [drawWidth, setDrawWidth] = useState<DrawWidth>(DrawWidth.Regular); const [drawWidth, setDrawWidth] = useState<DrawWidth>(DrawWidth.Regular);
const [editMode, setEditMode] = useState<EditMode | undefined>(); const [editMode, setEditMode] = useState<EditMode | undefined>();
@ -846,7 +846,7 @@ export const MediaEditor = ({
if (fabricCanvas) { if (fabricCanvas) {
fabricCanvas.uniformScaling = !cropAspectRatioLock; fabricCanvas.uniformScaling = !cropAspectRatioLock;
} }
setcropAspectRatioLock(!cropAspectRatioLock); setCropAspectRatioLock(!cropAspectRatioLock);
}} }}
type="button" type="button"
/> />