From 3a10d0b29f9cb3ebd7f7e33f0898fe06b361f312 Mon Sep 17 00:00:00 2001 From: junghyeonsu Date: Tue, 27 Aug 2024 15:23:06 +0900 Subject: [PATCH] fix: tab test --- packages/react-headless/tabs/src/useLazyContents.test.tsx | 7 ++----- packages/react-headless/tabs/src/useTabs.test.tsx | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/packages/react-headless/tabs/src/useLazyContents.test.tsx b/packages/react-headless/tabs/src/useLazyContents.test.tsx index e1cda58c..0c69fae9 100644 --- a/packages/react-headless/tabs/src/useLazyContents.test.tsx +++ b/packages/react-headless/tabs/src/useLazyContents.test.tsx @@ -86,13 +86,10 @@ function TabTrigger(props: React.PropsWithChildren) { function TabContentList(props: React.PropsWithChildren) { const { api } = useTabsContext(); - const { tabContentListProps, getDragProps, tabContentCameraProps } = api; - const dragProps = getDragProps(); + const { tabContentListProps, tabContentCameraProps } = api; return (
-
- {props.children} -
+
{props.children}
); } diff --git a/packages/react-headless/tabs/src/useTabs.test.tsx b/packages/react-headless/tabs/src/useTabs.test.tsx index 75aad503..c39746df 100644 --- a/packages/react-headless/tabs/src/useTabs.test.tsx +++ b/packages/react-headless/tabs/src/useTabs.test.tsx @@ -60,13 +60,10 @@ function TabTrigger(props: React.PropsWithChildren) { function TabContentList(props: React.PropsWithChildren) { const { api } = useTabsContext(); - const { tabContentListProps, getDragProps, tabContentCameraProps } = api; - const dragProps = getDragProps(); + const { tabContentListProps, tabContentCameraProps } = api; return (
-
- {props.children} -
+
{props.children}
); }