Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit 0ef6d6b

Browse files
committed
docs: show children api not supported in examples [ci skip]
1 parent d46a513 commit 0ef6d6b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/src/components/ComponentDoc/ComponentExample/ComponentExample.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { mergeThemeVariables } from '../../../../../src/lib/mergeThemes'
2020
import { ThemeContext } from '../../../context/theme-context'
2121
import CodeSnippet from '../../CodeSnippet'
2222
import formatCode from '../../../utils/formatCode'
23+
import { freemem } from 'os'
2324

2425
export interface ComponentExampleProps extends RouteComponentProps<any, any> {
2526
title: React.ReactNode
@@ -334,8 +335,12 @@ class ComponentExample extends React.Component<ComponentExampleProps, ComponentE
334335
disabled,
335336
key: codeType,
336337
onClick: this.setApiCodeType.bind(this, codeType),
337-
content: codeTypeApiButtonLabels[codeType],
338-
...(disabled && { className: 'crossout' }),
338+
content: (
339+
<span>
340+
{codeTypeApiButtonLabels[codeType]}
341+
{disabled && <em> (not supported)</em>}
342+
</span>
343+
),
339344
}
340345
})
341346

0 commit comments

Comments
 (0)