File tree Expand file tree Collapse file tree 5 files changed +18
-29
lines changed Expand file tree Collapse file tree 5 files changed +18
-29
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,17 @@ class PlaygroundPage extends React.Component {
39
39
< PlaygroundWithPreview
40
40
activeComponent = { this . state . activeComponent }
41
41
defaultCode = { this . state . defaultCode }
42
- />
43
- < Documentation
44
- isDocumentationOn = { this . state . isDocumentationOn }
45
42
expandDocumentation = { this . expandDocumentation }
43
+ isDocumentationOn = { this . state . isDocumentationOn }
46
44
/>
45
+ {
46
+ this . state . isDocumentationOn && (
47
+ < Documentation
48
+ activeDocs = { this . state . activeDocs }
49
+ isDocumentationOn = { this . state . isDocumentationOn }
50
+ />
51
+ )
52
+ }
47
53
</ ComponentBar >
48
54
</ div >
49
55
) ;
Original file line number Diff line number Diff line change 1
- export const CardDefaultCode = `
2
- class Demo extends React.Component {
3
- render() {
4
- return (
5
- <Card
6
- header='Card String header'
7
- wrapContent
8
- noPadding
9
- theme={customTheme}>
10
- <div>Card Content</div>
11
- <div>Card Content</div>
12
- <div>Card Content</div>
13
- </Card>
14
- )
15
- }
16
- }
17
1
18
- return <Demo />;
19
- ` ;
2
+ export { defaultCode as CardDefaultCode } from './Card' ;
Original file line number Diff line number Diff line change 1
1
import Card from '../../../../src/card' ;
2
- // import CardReadme from '../../../../src/card/readMe.md';
2
+ import CardReadme from '../../../../src/card/readMe.md' ;
3
3
4
4
import {
5
5
CardDefaultCode
6
6
} from './DefaultCode' ;
7
7
8
8
export const componentList = [
9
9
{
10
- name : 'card ' ,
11
- // doc : CardReadme,
10
+ name : 'Card ' ,
11
+ docs : CardReadme ,
12
12
component : Card ,
13
13
defaultCode : CardDefaultCode ,
14
14
} ,
Original file line number Diff line number Diff line change 28
28
"react-dom" : " ^16.4.1" ,
29
29
"react-flexbox-grid" : " ^2.1.2" ,
30
30
"react-router-dom" : " ^4.3.1" ,
31
+ "react-switch" : " ^3.0.4" ,
31
32
"sass-loader" : " ^7.0.3" ,
32
33
"webpack" : " ^4.12.0"
33
34
},
Original file line number Diff line number Diff line change @@ -47,11 +47,10 @@ module.exports = {
47
47
test : / \. ( t x t ) $ / ,
48
48
use : 'raw-loader' ,
49
49
include : path . resolve ( __dirname , './app/components/layout/main/modules' )
50
- } ,
51
- // {
52
- // test: /\.(md)$/,
53
- // use: 'html-loader!highlight-loader!markdown-loader'
54
- // }
50
+ } , {
51
+ test : / \. ( m d ) $ / ,
52
+ use : [ 'html-loader' , 'highlight-loader' , 'markdown-loader' ]
53
+ }
55
54
]
56
55
} ,
57
56
plugins : [
You can’t perform that action at this time.
0 commit comments