From 58677850a20dd24e23e85c06ced7b3f2c56f6a6c Mon Sep 17 00:00:00 2001 From: Niels Roozemond Date: Wed, 14 Feb 2024 10:59:31 +0100 Subject: [PATCH] Move useFocusWithArrows to common folder --- packages/react/src/Tabs/Tabs.tsx | 2 +- packages/react/src/{Tabs => common}/useFocusWithArrows.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename packages/react/src/{Tabs => common}/useFocusWithArrows.tsx (98%) 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',