Skip to content

Commit 7349b0d

Browse files
committed
added changes which includes change in codespace
1 parent d34eaba commit 7349b0d

File tree

5 files changed

+18
-29
lines changed

5 files changed

+18
-29
lines changed

docs/client/components/PlaygroundPage/index.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,17 @@ class PlaygroundPage extends React.Component {
3939
<PlaygroundWithPreview
4040
activeComponent={this.state.activeComponent}
4141
defaultCode={this.state.defaultCode}
42-
/>
43-
<Documentation
44-
isDocumentationOn={this.state.isDocumentationOn}
4542
expandDocumentation={this.expandDocumentation}
43+
isDocumentationOn={this.state.isDocumentationOn}
4644
/>
45+
{
46+
this.state.isDocumentationOn && (
47+
<Documentation
48+
activeDocs={this.state.activeDocs}
49+
isDocumentationOn={this.state.isDocumentationOn}
50+
/>
51+
)
52+
}
4753
</ComponentBar>
4854
</div>
4955
);
Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,2 @@
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-
}
171

18-
return <Demo />;
19-
`;
2+
export { defaultCode as CardDefaultCode } from './Card';

docs/client/components/common/componentList.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import Card from '../../../../src/card';
2-
// import CardReadme from '../../../../src/card/readMe.md';
2+
import CardReadme from '../../../../src/card/readMe.md';
33

44
import {
55
CardDefaultCode
66
} from './DefaultCode';
77

88
export const componentList = [
99
{
10-
name: 'card',
11-
// doc: CardReadme,
10+
name: 'Card',
11+
docs: CardReadme,
1212
component: Card,
1313
defaultCode: CardDefaultCode,
1414
},

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"react-dom": "^16.4.1",
2929
"react-flexbox-grid": "^2.1.2",
3030
"react-router-dom": "^4.3.1",
31+
"react-switch": "^3.0.4",
3132
"sass-loader": "^7.0.3",
3233
"webpack": "^4.12.0"
3334
},

docs/webpack.config.development.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,10 @@ module.exports = {
4747
test: /\.(txt)$/,
4848
use: 'raw-loader',
4949
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: /\.(md)$/,
52+
use: ['html-loader', 'highlight-loader', 'markdown-loader']
53+
}
5554
]
5655
},
5756
plugins: [

0 commit comments

Comments
 (0)