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 { class Certifications extends Component {
static propTypes = { static propTypes = {
account: PropTypes.string.isRequired, account: PropTypes.string.isRequired,
certifications: PropTypes.array.isRequired, certifications: PropTypes.array.isRequired
dappsUrl: PropTypes.string.isRequired
} }
render () { render () {
@ -65,7 +64,8 @@ function mapStateToProps (_, initProps) {
return (state) => { return (state) => {
const certifications = state.certifications[account] || []; 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 } /> balance={ balance } />
<Certifications <Certifications
account={ account.address } account={ account.address }
dappsUrl={ api.dappsUrl }
/> />
</div> </div>
{ children } { children }