Skip to content

Commit

Permalink
fix: rm useAdaptivityHasHover (#6009)
Browse files Browse the repository at this point in the history
  • Loading branch information
SevereCloud authored and actions-user committed Oct 19, 2023
1 parent a84e4ee commit b3f4d2a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 58 deletions.
4 changes: 1 addition & 3 deletions packages/vkui/src/components/Tappable/Tappable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import * as React from 'react';
import { classNames, noop } from '@vkontakte/vkjs';
import mitt from 'mitt';
import { useAdaptivity } from '../../hooks/useAdaptivity';
import { useAdaptivityHasHover } from '../../hooks/useAdaptivityHasHover';
import { useAdaptivityHasPointer } from '../../hooks/useAdaptivityHasPointer';
import { useBooleanState } from '../../hooks/useBooleanState';
import { useExternRef } from '../../hooks/useExternRef';
Expand Down Expand Up @@ -224,9 +223,8 @@ export const Tappable = ({
const insideTouchRoot = React.useContext(TouchRootContext);
const platform = usePlatform();
const { focusVisible, onBlur, onFocus } = useFocusVisible();
const { sizeX = 'none' } = useAdaptivity();
const { sizeX = 'none', hasHover: hasHoverContext = true } = useAdaptivity();
const hasPointerContext = useAdaptivityHasPointer();
const hasHoverContext = useAdaptivityHasHover();

const [clicks, setClicks] = React.useState<Wave[]>([]);
const [childHover, setChildHover] = React.useState(false);
Expand Down
29 changes: 0 additions & 29 deletions packages/vkui/src/hooks/useAdaptivityHasHover.test.tsx

This file was deleted.

26 changes: 0 additions & 26 deletions packages/vkui/src/hooks/useAdaptivityHasHover.ts

This file was deleted.

0 comments on commit b3f4d2a

Please sign in to comment.