File tree Expand file tree Collapse file tree
react-components/src/EmptyState Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React , { PropTypes } from 'react' ;
22import styles from './index.styl' ;
33
4+ /**
5+ * Empty state: Simple component for onboarding users to sections with no data.
6+ */
47const EmptyState = ( props ) => {
58 return (
69 < div className = "empty-state" >
Original file line number Diff line number Diff line change @@ -39,10 +39,12 @@ export default App;
3939function generateComponentsCollection ( listOfComponents ) {
4040 return Object . keys ( listOfComponents ) . map ( component => {
4141 const doc = StyleguideComponentsDocs [ component ] ;
42- const [ title ] = doc . description . split ( ':' ) ;
42+ let [ title , description ] = doc . description . split ( ':' ) ;
43+ description = description . slice ( 1 ) ;
4344
4445 return {
4546 title,
47+ description,
4648 url : toURL ( title ) ,
4749 component : listOfComponents [ component ] ,
4850 doc
Original file line number Diff line number Diff line change @@ -6,9 +6,7 @@ const ComponentPage = ({ component }) => {
66 return (
77 < section className = "react-component-page" >
88 < h1 className = "component-title" > { component . title } </ h1 >
9- < p className = "component-description" >
10- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Adipisci, quos.
11- </ p >
9+ < p className = "component-description" > { component . description } </ p >
1210 < Playground >
1311 < component . component />
1412 </ Playground >
You can’t perform that action at this time.
0 commit comments