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';
3
3
import CircularProgress from '@material-ui/core/CircularProgress' ;
4
4
import Markdown from 'markdown-to-jsx' ;
5
5
import { Heading } from '../src/components/mdx/mdx-components' ;
6
+ import mdxComponents from '@docs/components/mdx/mdx-components' ;
6
7
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
+ ) ) ;
14
17
15
18
const ReleasesPage = ( ) => {
16
19
const [ data , setData ] = useState ( undefined ) ;
Original file line number Diff line number Diff line change @@ -7,9 +7,6 @@ const schema = [
7
7
{
8
8
linkText : 'Live Form Editor' ,
9
9
link : 'live-editor' ,
10
- } , {
11
- linkText : 'Releases' ,
12
- link : 'releases' ,
13
10
} , {
14
11
title : 'React form renderer' ,
15
12
link : 'renderer' ,
@@ -33,6 +30,9 @@ const schema = [
33
30
fields : [
34
31
...otherExamples ,
35
32
] ,
33
+ } , {
34
+ linkText : 'Releases' ,
35
+ link : 'releases' ,
36
36
} ,
37
37
] ;
38
38
You can’t perform that action at this time.
0 commit comments