Make 1000 LBC notice only appear on home page
This commit is contained in:
parent
6e36cf67f1
commit
3246e93766
2 changed files with 7 additions and 7 deletions
|
@ -44,13 +44,6 @@ var App = React.createClass({
|
|||
}
|
||||
});
|
||||
},
|
||||
componentDidMount: function() {
|
||||
lbry.getStartNotice(function(notice) {
|
||||
if (notice) {
|
||||
alert(notice);
|
||||
}
|
||||
});
|
||||
},
|
||||
render: function() {
|
||||
if (this.state.viewingPage == 'home') {
|
||||
var content = <HomePage />;
|
||||
|
|
|
@ -272,6 +272,13 @@ var TopBar = React.createClass({
|
|||
});
|
||||
|
||||
var HomePage = React.createClass({
|
||||
componentDidMount: function() {
|
||||
lbry.getStartNotice(function(notice) {
|
||||
if (notice) {
|
||||
alert(notice);
|
||||
}
|
||||
});
|
||||
},
|
||||
render: function() {
|
||||
return (
|
||||
<div>
|
||||
|
|
Loading…
Add table
Reference in a new issue