From 24a7d5588eef0797b37cf9c5c2e0a7394414c95e Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Sun, 7 Aug 2016 14:00:56 -0400 Subject: [PATCH] turn return link into a component --- js/component/common.js | 13 ++++++++++++- js/page/help.js | 2 +- js/page/my_files.js | 2 +- js/page/report.js | 6 +++--- js/page/settings.js | 2 +- js/page/show.js | 2 +- js/page/wallet.js | 2 +- 7 files changed, 20 insertions(+), 9 deletions(-) diff --git a/js/component/common.js b/js/component/common.js index 2a9f2ef29..a9406295a 100644 --- a/js/component/common.js +++ b/js/component/common.js @@ -55,6 +55,7 @@ var ToolTip = React.createClass({ var linkContainerStyle = { position: 'relative', }; + var Link = React.createClass({ getInitialState: function() { return { @@ -100,6 +101,16 @@ var Link = React.createClass({ } }); +var ReturnLink = React.createClass({ + render: function() { + return
; + } +}); + var DownloadLink = React.createClass({ propTypes: { type: React.PropTypes.string, @@ -365,6 +376,6 @@ var subPageLogoStyle = { var SubPageLogo = React.createClass({ render: function() { - return ; + return ; } }); \ No newline at end of file diff --git a/js/page/help.js b/js/page/help.js index 64f0845cb..c65250cd4 100644 --- a/js/page/help.js +++ b/js/page/help.js @@ -26,7 +26,7 @@ var HelpPage = React.createClass({

None of this applies to me, or it didn't work.

Please . Thanks!

- +
); diff --git a/js/page/my_files.js b/js/page/my_files.js index e68203d03..a53d73d06 100644 --- a/js/page/my_files.js +++ b/js/page/my_files.js @@ -191,7 +191,7 @@ var MyFilesPage = React.createClass({ {content}
- +
); diff --git a/js/page/report.js b/js/page/report.js index bd46f2919..5c73b9e86 100644 --- a/js/page/report.js +++ b/js/page/report.js @@ -22,17 +22,17 @@ var ReportPage = React.createClass({ return (
-

Report a bug

+

Report an Issue

Please describe the problem you experienced and any information you think might be useful to us. Links to screenshots are great!