From d94e8a4e161692cdae1fb9a10427e980093f4f6a Mon Sep 17 00:00:00 2001 From: Sultan <105234327+natlusyht@users.noreply.github.com> Date: Thu, 23 Jun 2022 01:58:17 +0300 Subject: [PATCH] linter --- .../components/primitives/numericGestureControl.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/shared/design-system/components/primitives/numericGestureControl.tsx b/app/shared/design-system/components/primitives/numericGestureControl.tsx index c492ef241d..30dc7921c4 100644 --- a/app/shared/design-system/components/primitives/numericGestureControl.tsx +++ b/app/shared/design-system/components/primitives/numericGestureControl.tsx @@ -10,10 +10,9 @@ */ export const numericGestureControl = (targetNode, { initialValue = 0, - direction = 'horizontal' || 'vertical', - onValueChange = ({value = 0, preventDefault = () => null}) => null, + direction = 'horizontal', + onValueChange, }) => { - const {ownerDocument} = targetNode; const eventNames = [ 'pointerup', 'pointerdown', 'pointermove' ]; const state = { type: '', value: initialValue, cursor: direction === 'horizontal' ? 'ew-resize' : 'ns-resize' }; const handleEvent = ({ type, target, movementY, movementX, pointerId, pressure }) => {