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 {
|
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 };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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 }
|
||||||
|
Loading…
Reference in New Issue
Block a user