make copyright render the current year

Summary:
As discussed here https://github.com/facebook/react-native/pull/5835 now the copyright is computed from `Date`
Closes https://github.com/facebook/react-native/pull/5847

Reviewed By: svcscm

Differential Revision: D2918854

Pulled By: androidtrunkagent

fb-gh-sync-id: bd5a56111aec1282857ffd469b91f7476b67221d
shipit-source-id: bd5a56111aec1282857ffd469b91f7476b67221d
This commit is contained in:
Sam 2016-02-09 16:21:52 -08:00 коммит произвёл facebook-github-bot-9
Родитель 9f01f96770
Коммит de3b942b4d
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -15,6 +15,7 @@ var HeaderLinks = require('HeaderLinks');
var Site = React.createClass({
render: function() {
var title = this.props.title ? this.props.title + ' – ' : '';
var currentYear = (new Date()).getFullYear();
title += 'React Native | A framework for building native apps using React';
return (
<html>
@ -53,7 +54,7 @@ var Site = React.createClass({
{this.props.children}
<footer className="wrap">
<div className="center">© 2015 Facebook Inc.</div>
<div className="center">© {currentYear} Facebook Inc.</div>
</footer>
</div>