Added more views and atlas APIs

This commit is contained in:
Jori Lallo
2016-05-07 11:52:08 -07:00
parent 84ba65f72a
commit cbe9c0b6ee
22 changed files with 397 additions and 27 deletions

View File

@@ -0,0 +1,23 @@
import React from 'react';
import Link from 'react-router/lib/Link';
import styles from './AtlasPreview.scss';
import classNames from 'classnames/bind';
const cx = classNames.bind(styles);
class AtlasPreview extends React.Component {
static propTypes = {
data: React.PropTypes.object.isRequired,
}
render() {
return (
<div className={ styles.container }>
<h2><Link to={ `/atlas/${this.props.data.id}` } className={ styles.atlasLink }>{ this.props.data.name }</Link></h2>
<div>No documents. Why not <Link to='/new-document'>create one</Link>?</div>
</div>
);
}
};
export default AtlasPreview;

View File

@@ -0,0 +1,6 @@
@import '../../utils/constants.scss';
.atlasLink {
text-decoration: none;
color: $textColor;
}

View File

@@ -0,0 +1,2 @@
import AtlasPreview from './AtlasPreview';
export default AtlasPreview;