rwwarren/door-lock

View on GitHub
mobile/web/inc/Footer.js

Summary

Maintainability
A
3 hrs
Test Coverage
'use strict';

var Footer = React.createClass({
  render: function () {
    var now = new Date;
    var theYear = now.getYear();
    if (theYear < 1900) {
      theYear = theYear + 1900
    }
    return (
      <div className="footer">
        {'\u00A9'} {theYear} PiDuinoLock Mobile Web Interface
      </div>
    );
  }
});

module.exports = Footer;