Added functionality to the header

This commit is contained in:
Jori Lallo
2016-05-07 12:20:09 -07:00
parent cbe9c0b6ee
commit 3d4554caa3
4 changed files with 67 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
import React from 'react';
import Link from 'react-router/lib/Link';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { replace } from 'react-router-redux';
@@ -44,7 +45,12 @@ class Atlas extends React.Component {
const data = this.state.data;
return (
<Layout>
<Layout
actions={(
<Link to="/new-document">New document</Link>
)}
title={ data.name }
>
<CenteredContent>
{ this.state.isLoading ? (
<AtlasPreviewLoading />