chore: Fix spelling in ResizingAnchorProps

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2023-04-19 09:21:04 -04:00
1 parent 01059d8cb1
commit 9cafc8e6b1
2 files changed
+3 -3

No files matched your search

@@ -150,7 +150,7 @@ class NonInjectedDock extends React.Component<DockProps & Dependencies> {
maxExtent={dockStore.maxHeight}
direction={ResizeDirection.VERTICAL}
onStart={dockStore.open}
onMinExtentSubceed={dockStore.close}
onMinExtentSucceed={dockStore.close}
onMinExtentExceed={dockStore.open}
onDrag={extent => dockStore.height = extent}
/>
@@ -93,7 +93,7 @@ export interface ResizingAnchorProps {
*/
onMaxExtentExceed?: () => void;
onMaxExtentSubceed?: () => void;
onMinExtentSubceed?: () => void;
onMinExtentSucceed?: () => void;
onMinExtentExceed?: () => void;
}
@@ -255,7 +255,7 @@ export class ResizingAnchor extends React.PureComponent<ResizingAnchorProps> {
}
const { maxExtent, minExtent, getCurrentExtent, growthDirection } = this.props;
const { onDrag, onMaxExtentExceed, onMinExtentSubceed, onMaxExtentSubceed, onMinExtentExceed } = this.props;
const { onDrag, onMaxExtentExceed, onMinExtentSucceed: onMinExtentSubceed, onMaxExtentSubceed, onMinExtentExceed } = this.props;
const delta = this.calculateDelta(this.lastMouseEvent, event);
// always update the last mouse event