1- import { Description , DocsContext , Subtitle , Title } from '@storybook/addon-docs' ;
1+ import { Description , Subtitle , Title } from '@storybook/addon-docs/blocks ' ;
22import ButtonDesign from '@ui5/webcomponents/dist/types/ButtonDesign.js' ;
33import MessageStripDesign from '@ui5/webcomponents/dist/types/MessageStripDesign.js' ;
44import copyIcon from '@ui5/webcomponents-icons/dist/copy.js' ;
@@ -13,15 +13,17 @@ import {
1313 ThemeProvider ,
1414} from '@ui5/webcomponents-react' ;
1515import { clsx } from 'clsx' ;
16- import { useContext } from 'react' ;
1716import { useGetSubComponentsOfModule } from '../utils' ;
1817import classes from './DocsHeader.module.css' ;
1918import { GitHubLogo } from './GitHub-Mark' ;
2019import { Import } from './Import' ;
2120import { TableOfContent } from './TableOfContent' ;
2221
2322const Links = ( ) => {
24- const docsContext = useContext ( DocsContext ) ;
23+ //todo: context is not available anymore like this
24+ // const docsContext = useContext(DocsContext);
25+ return null ;
26+ const docsContext = { } ;
2527 const isChart = docsContext . componentStories ( ) . at ( 0 ) . id . startsWith ( 'charts-' ) ;
2628
2729 // const filePath = docsContext.parameters.fileName.replace(/^\.\//, '');
@@ -53,7 +55,9 @@ interface InfoTableProps {
5355}
5456
5557export const InfoTable = ( { since, subComponents, mergeSubComponents } : InfoTableProps ) => {
56- const context = useContext ( DocsContext ) ;
58+ //todo: context is not available anymore like this
59+ // const context = useContext(DocsContext);
60+ return null ;
5761 const groups = context . componentStories ( ) . at ( 0 ) . kind . split ( '/' ) ;
5862 const moduleName = groups [ groups . length - 1 ] . replace ( '(experimental)' , '' ) . trim ( ) ;
5963
0 commit comments