From ea87d2b484337de2f002fbcf98553d24472f03c7 Mon Sep 17 00:00:00 2001 From: Eldar <61377022+EldarMuhamethanov@users.noreply.github.com> Date: Tue, 10 Dec 2024 17:39:07 +0300 Subject: [PATCH] fix(ActonSheet): add FocusTrap props to ActionSheet props (#8057) --- packages/vkui/src/components/ActionSheet/ActionSheet.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/vkui/src/components/ActionSheet/ActionSheet.tsx b/packages/vkui/src/components/ActionSheet/ActionSheet.tsx index a581a8301d..c1ee5e891c 100644 --- a/packages/vkui/src/components/ActionSheet/ActionSheet.tsx +++ b/packages/vkui/src/components/ActionSheet/ActionSheet.tsx @@ -3,6 +3,7 @@ import * as React from 'react'; import { noop } from '@vkontakte/vkjs'; import { useAdaptivityWithJSMediaQueries } from '../../hooks/useAdaptivityWithJSMediaQueries'; +import { type UseFocusTrapProps } from '../../hooks/useFocusTrap'; import { usePlatform } from '../../hooks/usePlatform'; import { useCSSKeyframesAnimationController } from '../../lib/animation'; import { AppRootPortal } from '../AppRoot/AppRootPortal'; @@ -22,10 +23,8 @@ export interface ActionSheetOnCloseOptions { } export interface ActionSheetProps - extends Pick< - SharedDropdownProps, - 'toggleRef' | 'popupOffsetDistance' | 'placement' | 'autoFocus' - >, + extends Pick, + Omit, Omit, 'autoFocus' | 'title'> { title?: React.ReactNode; description?: React.ReactNode;