var topBarStyle = { 'float': 'right', 'position': 'absolute', 'right': 0, 'top': 0 }, balanceStyle = { 'marginRight': '5px', 'position': 'relative', 'top': '1px', }, menuDropdownStyle = { position: 'absolute', top: '26px', right: '0px', }; var TopBar = React.createClass({ getInitialState: function() { return { balance: 0, }; }, componentDidMount: function() { lbry.getBalance(function(balance) { this.setState({ balance: balance }); }.bind(this)); }, onClose: function() { window.location.href = "?start"; }, render: function() { var isLinux = /linux/i.test(navigator.userAgent); // @TODO: find a way to use getVersionInfo() here without messy state management return ( } style={balanceStyle} />
{isLinux ? : null}
); } }); var subPageLogoStyle = { maxWidth: '150px', display: 'block', marginTop: '36px', }; var SubPageLogo = React.createClass({ render: function() { return ; } }); var headerStyle = { padding: '12px 12px 36px', position: 'relative' }, headerImageStyle = { //@TODO: remove this, img should be properly scaled once size is settled height: '48px' }; var Header = React.createClass({ render: function() { return (
); } });