From 4679d6a0bddd22b012e7f379bd069af07e63e1e2 Mon Sep 17 00:00:00 2001 From: Andrew Nicolaou Date: Tue, 4 Jun 2019 14:58:13 +0200 Subject: [PATCH] Show "Back to the editor" in nav on Account view page --- client/components/NavBasic.jsx | 21 +++++++++++++++++++-- client/images/triangle-arrow-left.svg | 14 ++++++++++++++ client/modules/User/pages/AccountView.jsx | 5 +---- 3 files changed, 34 insertions(+), 6 deletions(-) create mode 100644 client/images/triangle-arrow-left.svg diff --git a/client/components/NavBasic.jsx b/client/components/NavBasic.jsx index 1cb89b71..92913add 100644 --- a/client/components/NavBasic.jsx +++ b/client/components/NavBasic.jsx @@ -1,10 +1,15 @@ +import PropTypes from 'prop-types'; import React from 'react'; import InlineSVG from 'react-inlinesvg'; const logoUrl = require('../images/p5js-logo-small.svg'); +const arrowUrl = require('../images/triangle-arrow-left.svg'); class NavBasic extends React.PureComponent { - + static defaultProps = { + onBack: null + } + render() { return ( ); } } -NavBasic.propTypes = {}; +NavBasic.propTypes = { + onBack: PropTypes.func, +}; export default NavBasic; diff --git a/client/images/triangle-arrow-left.svg b/client/images/triangle-arrow-left.svg new file mode 100644 index 00000000..dcc159df --- /dev/null +++ b/client/images/triangle-arrow-left.svg @@ -0,0 +1,14 @@ + + Left Arrow + Created with Sketch. + + + + + + + + + diff --git a/client/modules/User/pages/AccountView.jsx b/client/modules/User/pages/AccountView.jsx index f4d25fce..7382656e 100644 --- a/client/modules/User/pages/AccountView.jsx +++ b/client/modules/User/pages/AccountView.jsx @@ -42,15 +42,12 @@ class AccountView extends React.Component { p5.js Web Editor | Account - +

My Account

-