diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-09-16 00:56:43 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-09-16 00:56:43 +0200 |
commit | 674bc4273e9a2f1a2e41ef977a80219423c7cb51 (patch) | |
tree | b343902da8a0de10f075c46c75f8ad135bc23192 /web/src/js/components/Header.react.js | |
parent | acdd182754625fabcfc2c6ed4bdad8a63bce8ad6 (diff) | |
download | mitmproxy-674bc4273e9a2f1a2e41ef977a80219423c7cb51.tar.gz mitmproxy-674bc4273e9a2f1a2e41ef977a80219423c7cb51.tar.bz2 mitmproxy-674bc4273e9a2f1a2e41ef977a80219423c7cb51.zip |
format javascript
Diffstat (limited to 'web/src/js/components/Header.react.js')
-rw-r--r-- | web/src/js/components/Header.react.js | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/web/src/js/components/Header.react.js b/web/src/js/components/Header.react.js index 41202463..0131d350 100644 --- a/web/src/js/components/Header.react.js +++ b/web/src/js/components/Header.react.js @@ -7,21 +7,23 @@ var MainMenu = React.createClass({ }); }, render(){ - return <div> - <button className={"btn " + (this.props.settings.showEventLog ? "btn-primary" : "btn-default")} onClick={this.toggleEventLog}> + return ( + <div> + <button className={"btn " + (this.props.settings.showEventLog ? "btn-primary" : "btn-default")} onClick={this.toggleEventLog}> <i className="fa fa-database"></i> Display Event Log - </button> - </div>; + </button> + </div> + ); } }); var ToolsMenu = React.createClass({ render(){ - return (<div>Tools Menu</div>); + return <div>Tools Menu</div>; } }); var ReportsMenu = React.createClass({ render(){ - return (<div>Reports Menu</div>); + return <div>Reports Menu</div>; } }); @@ -58,7 +60,6 @@ var Header = React.createClass({ handleFileClick(){ console.log("File click"); }, - render(){ var header = []; for(var item in _Header_Entries){ @@ -82,6 +83,7 @@ var Header = React.createClass({ <div className="menu"> { menu } </div> - </header>); + </header> + ); } });
\ No newline at end of file |