Certifications: read dappsUrl from state

This commit is contained in:
Jannis R 2016-12-09 00:30:05 +01:00
parent e1c5796a5c
commit 5862f2a9eb
No known key found for this signature in database
GPG Key ID: 0FE83946296A88A5
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 };
};
}

View File

@ -78,7 +78,6 @@ export default class Header extends Component {
balance={ balance } />
<Certifications
account={ account.address }
dappsUrl={ api.dappsUrl }
/>
</div>
{ children }