diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-12-15 21:32:51 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-12-15 21:32:51 +0100 |
| commit | e0b0b2f976c61225a178c7715caf2656a1f6741f (patch) | |
| tree | 78a0e5c861462822d212c065f0825c906209bfe9 /scraper/client/common/gate.component.js | |
| parent | c5b02ffab8d388e8a2925e51736b902a48a95e71 (diff) | |
moving stuff
Diffstat (limited to 'scraper/client/common/gate.component.js')
| -rw-r--r-- | scraper/client/common/gate.component.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/scraper/client/common/gate.component.js b/scraper/client/common/gate.component.js deleted file mode 100644 index 9bf9287b..00000000 --- a/scraper/client/common/gate.component.js +++ /dev/null @@ -1,21 +0,0 @@ -import React from 'react' -import { connect } from 'react-redux' - -function Gate(props) { - const { app, tag, View } = props - const data = app[tag] - if (!data) return null - if (data === 'loading') { - return <div className='tableObject loading'>{tag}{': Loading'}</div> - } - if (data.err) { - return <div className='tableObject error'>{tag}{' Error: '}{data.err}</div> - } - return <View data={data} {...props} /> -} - -const mapStateToProps = state => ({ - app: state.metadata -}) - -export default connect(mapStateToProps)(Gate) |
