diff --git a/packages/react/src/Tabs/Tabs.tsx b/packages/react/src/Tabs/Tabs.tsx index 11c2e6ecd8..223ea21335 100644 --- a/packages/react/src/Tabs/Tabs.tsx +++ b/packages/react/src/Tabs/Tabs.tsx @@ -10,7 +10,7 @@ import { TabsButton } from './TabsButton' import TabsContext from './TabsContext' import { TabsList } from './TabsList' import { TabsPanel } from './TabsPanel' -import useFocusWithArrows from './useFocusWithArrows' +import useFocusWithArrows from '../common/useFocusWithArrows' export type TabsProps = {} & PropsWithChildren> diff --git a/packages/react/src/Tabs/useFocusWithArrows.tsx b/packages/react/src/common/useFocusWithArrows.tsx similarity index 98% rename from packages/react/src/Tabs/useFocusWithArrows.tsx rename to packages/react/src/common/useFocusWithArrows.tsx index 5c353fb599..5a513a0e5d 100644 --- a/packages/react/src/Tabs/useFocusWithArrows.tsx +++ b/packages/react/src/common/useFocusWithArrows.tsx @@ -5,7 +5,7 @@ import type { KeyboardEvent, RefObject } from 'react' -export const KeyboardKeys = { +const KeyboardKeys = { ArrowUp: 'ArrowUp', ArrowDown: 'ArrowDown', ArrowRight: 'ArrowRight',