mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Convert AccountPanel component to ES6 class (#7775)
This commit is contained in:
parent
92971d3c87
commit
6947ff49e0
@ -1,17 +1,9 @@
|
||||
import React, { Component } from 'react'
|
||||
import { inherits } from 'util'
|
||||
import Identicon from '../ui/identicon'
|
||||
import { addressSummary, formatBalance } from '../../helpers/utils/util'
|
||||
|
||||
export default AccountPanel
|
||||
|
||||
|
||||
inherits(AccountPanel, Component)
|
||||
function AccountPanel () {
|
||||
Component.call(this)
|
||||
}
|
||||
|
||||
AccountPanel.prototype.render = function () {
|
||||
export default class AccountPanel extends Component {
|
||||
render () {
|
||||
const state = this.props
|
||||
const identity = state.identity || {}
|
||||
const account = state.account || {}
|
||||
@ -51,6 +43,7 @@ AccountPanel.prototype.render = function () {
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
function balanceOrFaucetingIndication (account) {
|
||||
return {
|
||||
|
Loading…
x
Reference in New Issue
Block a user