Skip to content

Commit

Permalink
Merge pull request #19437 from mihkeleidast/docs-container-children
Browse files Browse the repository at this point in the history
Addon-docs: Define children for DocsContainer
  • Loading branch information
shilman authored Oct 18, 2022
2 parents 27f6985 + afbd38c commit 90c58e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/lib/blocks/src/blocks/DocsContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { FunctionComponent, useEffect } from 'react';
import React, { FunctionComponent, useEffect, ReactNode } from 'react';
import global from 'global';
import type { ThemeVars } from '@storybook/theming';
import { ThemeProvider, ensure as ensureTheme } from '@storybook/theming';
Expand All @@ -13,6 +13,7 @@ const { document, window: globalWindow } = global;
export interface DocsContainerProps<TFramework extends AnyFramework = AnyFramework> {
context: DocsContextProps<TFramework>;
theme?: ThemeVars;
children?: ReactNode;
}

export const DocsContainer: FunctionComponent<DocsContainerProps> = ({
Expand Down

0 comments on commit 90c58e7

Please sign in to comment.