add link to fullscreen in nav

This commit is contained in:
catarak 2016-08-17 18:35:15 -04:00
parent 3ab1b82d8d
commit da2739d3a9
2 changed files with 10 additions and 1 deletions

View file

@ -31,6 +31,11 @@ function Nav(props) {
Download Download
</a> </a>
</li> </li>
<li className="nav__item">
<Link to={`/full/${props.project.id}`} target="_blank">
Fullscreen
</Link>
</li>
<li className="nav__item"> <li className="nav__item">
<p className="nav__open"> <p className="nav__open">
<Link to="/sketches"> <Link to="/sketches">
@ -57,7 +62,10 @@ Nav.propTypes = {
user: PropTypes.shape({ user: PropTypes.shape({
authenticated: PropTypes.bool.isRequired, authenticated: PropTypes.bool.isRequired,
username: PropTypes.string username: PropTypes.string
}).isRequired }).isRequired,
project: PropTypes.shape({
id: PropTypes.string
})
}; };
export default Nav; export default Nav;

View file

@ -114,6 +114,7 @@ class IDEView extends React.Component {
saveProject={this.props.saveProject} saveProject={this.props.saveProject}
exportProjectAsZip={this.props.exportProjectAsZip} exportProjectAsZip={this.props.exportProjectAsZip}
cloneProject={this.props.cloneProject} cloneProject={this.props.cloneProject}
project={this.props.project}
/> />
<Toolbar <Toolbar
className="Toolbar" className="Toolbar"