mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 17:54:48 +00:00
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:
parent
9f01f96770
commit
de3b942b4d
@ -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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user