aboutsummaryrefslogtreecommitdiff
path: root/src/web/js/components/Navbar.react.js
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2017-09-26 23:00:45 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2017-09-26 23:00:45 +0200
commitf509ad70664c360920bfd1bd9b302e4eeb3043df (patch)
tree383dcd3813913ac72af8be58549440da50b4e234 /src/web/js/components/Navbar.react.js
parentrenew certificate (diff)
downloadnewspipe-f509ad70664c360920bfd1bd9b302e4eeb3043df.tar.gz
newspipe-f509ad70664c360920bfd1bd9b302e4eeb3043df.tar.bz2
newspipe-f509ad70664c360920bfd1bd9b302e4eeb3043df.zip
Upgrade to React v16.0.0.
Diffstat (limited to 'src/web/js/components/Navbar.react.js')
-rw-r--r--src/web/js/components/Navbar.react.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/web/js/components/Navbar.react.js b/src/web/js/components/Navbar.react.js
index ca2ff27b..83f3c72c 100644
--- a/src/web/js/components/Navbar.react.js
+++ b/src/web/js/components/Navbar.react.js
@@ -1,4 +1,5 @@
var React = require('react');
+var createReactClass = require('create-react-class');
var Glyphicon = require('react-bootstrap/lib/Glyphicon');
var Nav = require('react-bootstrap/lib/Nav');
var NavItem = require('react-bootstrap/lib/NavItem');
@@ -11,7 +12,7 @@ var Input = require('react-bootstrap/lib/Input');
var MenuStore = require('../stores/MenuStore');
-JarrNavBar = React.createClass({
+JarrNavBar = createReactClass({
getInitialState: function() {
return {is_admin: MenuStore._datas.is_admin,
crawling_method: MenuStore._datas.crawling_method,
bgstack15