From 379444515b612782b71a806de567521d01f9e7ac Mon Sep 17 00:00:00 2001 From: Matthew Johnston Date: Tue, 28 Jul 2015 14:22:13 +0100 Subject: [PATCH 1/2] Adding 404.js to catch 404s on website --- website/src/react-native/404.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 website/src/react-native/404.js diff --git a/website/src/react-native/404.js b/website/src/react-native/404.js new file mode 100755 index 000000000..2c2f00212 --- /dev/null +++ b/website/src/react-native/404.js @@ -0,0 +1,25 @@ +/** + * Copyright (c) 2015-present, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */ + +var React = require('React'); + +var four_oh_four = React.createClass({ + render: function() { + return ( + + + + + + + ); + } +}); + +module.exports = four_oh_four; From 7a806f6d896d0b56dae40f0ee9bc6b0f3a8755a0 Mon Sep 17 00:00:00 2001 From: Matthew Johnston Date: Tue, 28 Jul 2015 14:34:47 +0100 Subject: [PATCH 2/2] Update 404.js --- website/src/react-native/404.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/react-native/404.js b/website/src/react-native/404.js index 2c2f00212..4b1e116ae 100755 --- a/website/src/react-native/404.js +++ b/website/src/react-native/404.js @@ -9,7 +9,7 @@ var React = require('React'); -var four_oh_four = React.createClass({ +var fourOhFour = React.createClass({ render: function() { return ( @@ -22,4 +22,4 @@ var four_oh_four = React.createClass({ } }); -module.exports = four_oh_four; +module.exports = fourOhFour;