diff --git a/js/component/common.js b/js/component/common.js index f767e8a1b..9a5fd57e4 100644 --- a/js/component/common.js +++ b/js/component/common.js @@ -27,6 +27,15 @@ var TruncatedText = React.createClass({ } }); +var BusyMessage = React.createClass({ + propTypes: { + message: React.PropTypes.string + }, + render: function() { + return {this.props.message} + } +}); + var toolTipStyle = { position: 'absolute', zIndex: '1', diff --git a/js/component/splash.js b/js/component/splash.js index e07478971..c6aaf87df 100644 --- a/js/component/splash.js +++ b/js/component/splash.js @@ -52,8 +52,7 @@ var SplashScreen = React.createClass({ LBRY

- {this.props.message} - +

{this.state.details}
diff --git a/js/page/discover.js b/js/page/discover.js index ce3a8657c..c76b92827 100644 --- a/js/page/discover.js +++ b/js/page/discover.js @@ -8,8 +8,7 @@ var SearchActive = React.createClass({ render: function() { return (
- Looking up the Dewey Decimals - +
); } diff --git a/js/page/my_files.js b/js/page/my_files.js index c368cda48..14cef41d8 100644 --- a/js/page/my_files.js +++ b/js/page/my_files.js @@ -158,7 +158,11 @@ var MyFilesPage = React.createClass({ }, render: function() { if (this.state.filesInfo === null) { - return null; + return ( +
+ +
+ ); } if (!this.state.filesInfo.length) { diff --git a/js/page/wallet.js b/js/page/wallet.js index acfd5e67b..cca61907e 100644 --- a/js/page/wallet.js +++ b/js/page/wallet.js @@ -99,7 +99,7 @@ var SendToAddressSection = React.createClass({

Results

{this.state.results} - : '' + : '' } ); @@ -111,8 +111,8 @@ var WalletPage = React.createClass({ document.title = "My Wallet"; }, /* - Below should be refactored so that balance is shared all of wallet page. Or even broader? - What is the proper React pattern for sharing a global state like balance? + Below should be refactored so that balance is shared all of wallet page. Or even broader? + What is the proper React pattern for sharing a global state like balance? */ getInitialState: function() { return { @@ -142,4 +142,4 @@ var WalletPage = React.createClass({ ); } -}); +}); \ No newline at end of file