Skip to content

Commit

Permalink
fix: tab test
Browse files Browse the repository at this point in the history
  • Loading branch information
junghyeonsu committed Aug 27, 2024
1 parent 3baa1d7 commit 3a10d0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions packages/react-headless/tabs/src/useLazyContents.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,10 @@ function TabTrigger(props: React.PropsWithChildren<TriggerProps>) {

function TabContentList(props: React.PropsWithChildren) {
const { api } = useTabsContext();
const { tabContentListProps, getDragProps, tabContentCameraProps } = api;
const dragProps = getDragProps();
const { tabContentListProps, tabContentCameraProps } = api;
return (
<div {...tabContentListProps}>
<div {...tabContentCameraProps} {...dragProps}>
{props.children}
</div>
<div {...tabContentCameraProps}>{props.children}</div>
</div>
);
}
Expand Down
7 changes: 2 additions & 5 deletions packages/react-headless/tabs/src/useTabs.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,10 @@ function TabTrigger(props: React.PropsWithChildren<TriggerProps>) {

function TabContentList(props: React.PropsWithChildren) {
const { api } = useTabsContext();
const { tabContentListProps, getDragProps, tabContentCameraProps } = api;
const dragProps = getDragProps();
const { tabContentListProps, tabContentCameraProps } = api;
return (
<div {...tabContentListProps}>
<div {...tabContentCameraProps} {...dragProps}>
{props.children}
</div>
<div {...tabContentCameraProps}>{props.children}</div>
</div>
);
}
Expand Down

0 comments on commit 3a10d0b

Please sign in to comment.