Certifications: read dappsUrl from state

This commit is contained in:
Jannis R
2016-12-09 00:30:05 +01:00
parent e1c5796a5c
commit 5862f2a9eb
2 changed files with 3 additions and 4 deletions

View File

@@ -27,8 +27,7 @@ import styles from './certifications.css';
class Certifications extends Component {
static propTypes = {
account: PropTypes.string.isRequired,
certifications: PropTypes.array.isRequired,
dappsUrl: PropTypes.string.isRequired
certifications: PropTypes.array.isRequired
}
render () {
@@ -65,7 +64,8 @@ function mapStateToProps (_, initProps) {
return (state) => {
const certifications = state.certifications[account] || [];
return { certifications };
const dappsUrl = state.api.dappsUrl;
return { certifications, dappsUrl };
};
}