/* global browser */ var React = require('react'); var reactCreateClass = require('create-react-class'); var MainList = reactCreateClass({ _openOptionsPage: function () { if (browser.runtime.openOptionsPage) { // New way to open options pages, if supported (Chrome 42+). browser.runtime.openOptionsPage(); } else { // Reasonable fallback. window.open(browser.runtime.getURL('options.html')); } }, render: function () { var that = this; var loginLogoutButton = function () { if (that.props.loggedIn === true) { return (
); } return ( Login ); }; // If logging is enabled, display that info to user var loggingStatus = function () { if (that.props.loggingEnabled === true && that.props.loggedIn === true) { return ( ); } else if (that.props.loggingEnabled === false && that.props.loggedIn === true) { return ( ); } }; var totalTimeLoggedToday = function () { if (that.props.loggedIn === true) { return ({that.props.totalTimeLoggedToday}
TOTAL TIME LOGGED TODAY