feat(fs.shared): Updated mdx components
This commit is contained in:
parent
14a56e4617
commit
1369241c95
3 changed files with 11 additions and 50 deletions
|
@ -1,7 +1,6 @@
|
|||
import Popout from '../popout.js'
|
||||
import Highlight from './highlight.js'
|
||||
import YouTube from './youtube.js'
|
||||
import DesignIterator from './design-iterator.js'
|
||||
import Figure from './figure.js'
|
||||
import ReadMore from './read-more.js'
|
||||
import Example from './example/index.js'
|
||||
|
@ -12,7 +11,6 @@ import tutorial from '@freesewing/tutorial'
|
|||
|
||||
const mdxCustomComponents = (app) => ({
|
||||
// Custom components
|
||||
DesignIterator,
|
||||
Example: props => <Example
|
||||
{...props}
|
||||
patterns={{examples, rendertest, tutorial}}
|
||||
|
@ -27,18 +25,6 @@ const mdxCustomComponents = (app) => ({
|
|||
Warning: props => <Popout {...props} warning />,
|
||||
YouTube,
|
||||
pre: props => <Highlight {...props} />,
|
||||
//code: props => <Highlight {...props} tag='code'/>,
|
||||
// TODO: Handle PatternPage component
|
||||
PatternPage: props => (
|
||||
<Popout {...props} fixme>
|
||||
<p>
|
||||
The PatternPage component is not yet implemented.
|
||||
<br />
|
||||
Below are the props:
|
||||
</p>
|
||||
<pre>{JSON.stringify(props, null ,2)}</pre>
|
||||
</Popout>
|
||||
),
|
||||
img: Figure,
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue