This commit is contained in:
ntr
2018-09-18 20:13:22 +10:00
parent 428d3a2c78
commit c23c65d386
11 changed files with 204 additions and 180 deletions
@@ -0,0 +1,6 @@
const preact = require('preact');
module.exports = ({ account }) => {
if (account) return <div>{JSON.stringify(account)}</div>;
return <div>not logged in</div>;
};
+13
View File
@@ -0,0 +1,13 @@
const { connect } = require('preact-redux');
const Status = require('./status.component');
// Add the incident from state as a property
const addState = connect(
state => ({ account: state.account }),
// dispatch => ({
// closeDetails() { dispatch(openIncident()); },
// }),
);
module.exports = addState(Status);