From ee3d0d98e19f1d8177d85af1866fd0ee431fe9ea Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 25 Nov 2018 22:19:15 +0100 Subject: moving stuff --- client/common/gate.component.js | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 client/common/gate.component.js (limited to 'client/common/gate.component.js') diff --git a/client/common/gate.component.js b/client/common/gate.component.js deleted file mode 100644 index 9bf9287b..00000000 --- a/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
{tag}{': Loading'}
- } - if (data.err) { - return
{tag}{' Error: '}{data.err}
- } - return -} - -const mapStateToProps = state => ({ - app: state.metadata -}) - -export default connect(mapStateToProps)(Gate) -- cgit v1.2.3-70-g09d2