A Metamask fork with Infura removed and default networks editable
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
ciphermask/ui/app/pages/settings/connections-tab/connected-site-row/connected-site-row.componen...

31 lines
736 B

import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
export default class ConnectedSiteRow extends PureComponent {
static defaultProps = {
siteTitle: null,
siteImage: null,
onDelete: () => {},
}
static propTypes = {
siteTitle: PropTypes.string,
siteImage: PropTypes.string,
origin: PropTypes.string.isRequired,
onDelete: PropTypes.func,
}
render () {
const {
origin,
onDelete,
} = this.props
return (
<div className="connected-site-row">
<div className="connected-site-row__origin">{origin}</div>
<div className="connected-site-row__delete" onClick={onDelete}><i className="fa fa-trash" /></div>
</div>
)
}
}