File tree Expand file tree Collapse file tree 2 files changed +13
-10
lines changed
packages/react-renderer-demo/src/app
src/components/navigation Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,17 @@ import Grid from '@material-ui/core/Grid';
33import CircularProgress from '@material-ui/core/CircularProgress' ;
44import Markdown from 'markdown-to-jsx' ;
55import { Heading } from '../src/components/mdx/mdx-components' ;
6+ import mdxComponents from '@docs/components/mdx/mdx-components' ;
67
7- const parseData = data => data . map ( ( release ) => {
8- return (
9- < React . Fragment key = { release . name } >
10- < Markdown > { release . body } </ Markdown >
11- </ React . Fragment >
12- ) ;
13- } ) ;
8+ const options = {
9+ overrides : { a : mdxComponents . link } ,
10+ } ;
11+
12+ const parseData = data => data . map ( ( release ) => (
13+ < React . Fragment key = { release . name } >
14+ < Markdown options = { options } > { release . body } </ Markdown >
15+ </ React . Fragment >
16+ ) ) ;
1417
1518const ReleasesPage = ( ) => {
1619 const [ data , setData ] = useState ( undefined ) ;
Original file line number Diff line number Diff line change @@ -7,9 +7,6 @@ const schema = [
77 {
88 linkText : 'Live Form Editor' ,
99 link : 'live-editor' ,
10- } , {
11- linkText : 'Releases' ,
12- link : 'releases' ,
1310 } , {
1411 title : 'React form renderer' ,
1512 link : 'renderer' ,
@@ -33,6 +30,9 @@ const schema = [
3330 fields : [
3431 ...otherExamples ,
3532 ] ,
33+ } , {
34+ linkText : 'Releases' ,
35+ link : 'releases' ,
3636 } ,
3737] ;
3838
You can’t perform that action at this time.
0 commit comments