From 6e7e4e1cacc41cc504e2a82ae0d8d08dead07427 Mon Sep 17 00:00:00 2001 From: Jack Mallers Date: Tue, 3 Oct 2017 12:52:29 -0500 Subject: [PATCH] feature(global-error): set up global error component --- app/components/GlobalError/GlobalError.js | 16 ++++++++++++++++ app/components/GlobalError/GlobalError.scss | 0 app/components/GlobalError/index.js | 3 +++ app/routes/app/components/App.js | 2 ++ 4 files changed, 21 insertions(+) create mode 100644 app/components/GlobalError/GlobalError.js create mode 100644 app/components/GlobalError/GlobalError.scss create mode 100644 app/components/GlobalError/index.js diff --git a/app/components/GlobalError/GlobalError.js b/app/components/GlobalError/GlobalError.js new file mode 100644 index 00000000..a5cb0fec --- /dev/null +++ b/app/components/GlobalError/GlobalError.js @@ -0,0 +1,16 @@ +import React from 'react' +import PropTypes from 'prop-types' +import styles from './GlobalError' + +const GlobalError = ({ error }) => { + console.log('error: ', error) + return ( +
+ yo global error mf +
+ ) +} + +GlobalError.propTypes = {} + +export default GlobalError diff --git a/app/components/GlobalError/GlobalError.scss b/app/components/GlobalError/GlobalError.scss new file mode 100644 index 00000000..e69de29b diff --git a/app/components/GlobalError/index.js b/app/components/GlobalError/index.js new file mode 100644 index 00000000..41eb98ac --- /dev/null +++ b/app/components/GlobalError/index.js @@ -0,0 +1,3 @@ +import GlobalError from './GlobalError' + +export default GlobalError \ No newline at end of file diff --git a/app/routes/app/components/App.js b/app/routes/app/components/App.js index b1db6815..5c8e5299 100644 --- a/app/routes/app/components/App.js +++ b/app/routes/app/components/App.js @@ -1,5 +1,6 @@ import React, { Component } from 'react' import PropTypes from 'prop-types' +import GlobalError from 'components/GlobalError' import LoadingBolt from 'components/LoadingBolt' import Form from 'components/Form' import ModalRoot from 'components/ModalRoot' @@ -37,6 +38,7 @@ class App extends Component { return (
+