Certifications: read dappsUrl from state
This commit is contained in:
parent
e1c5796a5c
commit
5862f2a9eb
@ -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 };
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,6 @@ export default class Header extends Component {
|
||||
balance={ balance } />
|
||||
<Certifications
|
||||
account={ account.address }
|
||||
dappsUrl={ api.dappsUrl }
|
||||
/>
|
||||
</div>
|
||||
{ children }
|
||||
|
Loading…
Reference in New Issue
Block a user