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 authored and rokotyan committed Feb 7, 2023
1 parent f6c77c6 commit 7b7f795
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions packages/website/package.json
Expand Up @@ -41,10 +41,10 @@
"@angular/core": "^12.0.3",
"@angular/platform-browser": "^12.0.3",
"@angular/platform-browser-dynamic": "^12.0.3",
"@docusaurus/core": "^2.1.0",
"@docusaurus/plugin-debug": "^2.1.0",
"@docusaurus/plugin-sitemap": "^2.1.0",
"@docusaurus/preset-classic": "^2.1.0",
"@docusaurus/core": "^2.3.0",
"@docusaurus/plugin-debug": "^2.3.1",
"@docusaurus/plugin-sitemap": "^2.3.1",
"@docusaurus/preset-classic": "^2.3.1",
"@mdx-js/react": "^1.6.21",
"@stackblitz/sdk": "1.8.0",
"clsx": "^1.1.1",
Expand Down
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 7b7f795

Please sign in to comment.