mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 11:01:41 +01:00
eeb329adf7
The MetaMask logo was throwing an exception because the `history` prop from React Router wasn't being passed in. However, even if it was passed in, clicking on the logo wouldn't have done anything because the home route redirects back to the permission connect page. Instead the logo now isn't given an `onClick` handler. The `MetaFoxLogo` component has been updated to only set `cursor: pointer` if given an `onClick` handler.
24 lines
571 B
JavaScript
24 lines
571 B
JavaScript
import PropTypes from 'prop-types'
|
|
import React, { Component } from 'react'
|
|
import MetaFoxLogo from '../../../components/ui/metafox-logo'
|
|
|
|
export default class PermissionsConnectHeader extends Component {
|
|
static propTypes = {
|
|
page: PropTypes.number.isRequired,
|
|
}
|
|
|
|
render () {
|
|
const { page } = this.props
|
|
return (
|
|
<div className="permissions-connect-header">
|
|
<MetaFoxLogo
|
|
unsetIconHeight
|
|
/>
|
|
<div className="permissions-connect-header__page-count">
|
|
{ `${page}/2` }
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
}
|