1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

chore: Fix spelling in ResizingAnchorProps

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-04-19 08:04:16 -04:00
parent 01059d8cb1
commit 9cafc8e6b1
2 changed files with 3 additions and 3 deletions

View File

@ -150,7 +150,7 @@ class NonInjectedDock extends React.Component<DockProps & Dependencies> {
maxExtent={dockStore.maxHeight} maxExtent={dockStore.maxHeight}
direction={ResizeDirection.VERTICAL} direction={ResizeDirection.VERTICAL}
onStart={dockStore.open} onStart={dockStore.open}
onMinExtentSubceed={dockStore.close} onMinExtentSucceed={dockStore.close}
onMinExtentExceed={dockStore.open} onMinExtentExceed={dockStore.open}
onDrag={extent => dockStore.height = extent} onDrag={extent => dockStore.height = extent}
/> />

View File

@ -93,7 +93,7 @@ export interface ResizingAnchorProps {
*/ */
onMaxExtentExceed?: () => void; onMaxExtentExceed?: () => void;
onMaxExtentSubceed?: () => void; onMaxExtentSubceed?: () => void;
onMinExtentSubceed?: () => void; onMinExtentSucceed?: () => void;
onMinExtentExceed?: () => void; onMinExtentExceed?: () => void;
} }
@ -255,7 +255,7 @@ export class ResizingAnchor extends React.PureComponent<ResizingAnchorProps> {
} }
const { maxExtent, minExtent, getCurrentExtent, growthDirection } = this.props; 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); const delta = this.calculateDelta(this.lastMouseEvent, event);
// always update the last mouse event // always update the last mouse event