diff --git a/js/app.js b/js/app.js
index 7c59307e6..ac436b306 100644
--- a/js/app.js
+++ b/js/app.js
@@ -9,7 +9,7 @@ var App = React.createClass({
if (param && ['settings', 'help', 'start', 'watch', 'report', 'files', 'claim', 'show', 'wallet', 'publish'].indexOf(param) != -1) {
viewingPage = param;
}
-
+
return {
viewingPage: viewingPage ? viewingPage : 'home',
drawerOpen: drawerOpenRaw !== null ? JSON.parse(drawerOpenRaw) : true,
diff --git a/js/component/common.js b/js/component/common.js
index d44033b94..4daaed476 100644
--- a/js/component/common.js
+++ b/js/component/common.js
@@ -61,6 +61,10 @@ var creditAmountStyle = {
color: '#aaa',
};
+var CurrencySymbol = React.createClass({
+ render: function() { return LBC; }
+});
+
var CreditAmount = React.createClass({
propTypes: {
amount: React.PropTypes.number,
diff --git a/js/component/drawer.js b/js/component/drawer.js
index 974a26f20..748c9af52 100644
--- a/js/component/drawer.js
+++ b/js/component/drawer.js
@@ -32,7 +32,7 @@ var Drawer = React.createClass({
-
+
diff --git a/js/component/header.js b/js/component/header.js
index f6116cb86..2ceb46f61 100644
--- a/js/component/header.js
+++ b/js/component/header.js
@@ -1,7 +1,8 @@
var Header = React.createClass({
getInitialState: function() {
return {
- title: "LBRY"
+ title: "LBRY",
+ isScrolled: false
};
},
componentWillMount: function() {
@@ -12,10 +13,21 @@ var Header = React.createClass({
{ subtree: true, characterData: true, childList: true }
);
},
+ componentDidMount() {
+ document.addEventListener('scroll', this.handleScroll);
+ },
+ componentWillUnmount() {
+ document.removeEventListener('scroll', this.handleScroll);
+ },
+ handleScroll() {
+ this.setState({
+ isScrolled: event.srcElement.body.scrollTop > 0
+ });
+ },
render: function() {
var isLinux = /linux/i.test(navigator.userAgent); // @TODO: find a way to use getVersionInfo() here without messy state management
return (
-