Skip to content

Commit

Permalink
Website | Fix: Update tabGroupChoice to useTabs util function
Browse files Browse the repository at this point in the history
ref: #134
  • Loading branch information
reb-dev committed Feb 7, 2023
1 parent 52e8cec commit c59f498
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/website/src/theme/Tabs/index.tsx
Expand Up @@ -2,7 +2,7 @@
import React from 'react'

// @ts-ignore
import { useTabGroupChoice } from '/node_modules/@docusaurus/theme-common/lib/contexts/tabGroupChoice'
import { useTabs } from '/node_modules/@docusaurus/theme-common/lib/utils/tabsUtils'
import { StackblitzButton } from '@site/src/components/StackblitzButton'
import { Example } from '@site/src/types/example'
import Tabs from '@theme-original/Tabs'
Expand All @@ -14,8 +14,8 @@ type TabProps = {
}

export default function TabsWrapper (props: TabProps): JSX.Element {
const groups = useTabGroupChoice()
const current = groups.tabGroupChoices.framework
const groups = useTabs(props)
const current = groups.selectedValue

return (
<>
Expand Down

0 comments on commit c59f498

Please sign in to comment.