Skip to content

Commit dec0b8c

Browse files
authored
fix: Remove mobile device detection (#719)
* fix: improve inc/dec controls logic * chore: add unit test * chore: add comment * Revert "chore: add unit test" This reverts commit 67167e5. * Revert "chore: add comment" This reverts commit 23a042e. * Revert file * chore: remove tests/mobile.test.tsx
1 parent c1cded6 commit dec0b8c

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

src/StepHandler.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable react/no-unknown-property */
22
import * as React from 'react';
33
import cls from 'classnames';
4-
import useMobile from '@rc-component/util/lib/hooks/useMobile';
54
import raf from '@rc-component/util/lib/raf';
65
import SemanticContext from './SemanticContext';
76

@@ -71,11 +70,6 @@ export default function StepHandler({
7170
);
7271

7372
// ======================= Render =======================
74-
const isMobile = useMobile();
75-
if (isMobile) {
76-
return null;
77-
}
78-
7973
const handlerClassName = `${prefixCls}-handler`;
8074

8175
const upClassName = cls(handlerClassName, `${handlerClassName}-up`, {

tests/mobile.test.tsx

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)