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/asset/components/native-asset.js

32 lines
1018 B

import React from 'react'
import PropTypes from 'prop-types'
import { useSelector } from 'react-redux'
import { useHistory } from 'react-router-dom'
import TransactionList from '../../../components/app/transaction-list'
import { EthOverview } from '../../../components/app/wallet-overview'
import { getSelectedIdentity } from '../../../selectors/selectors'
import { DEFAULT_ROUTE } from '../../../helpers/constants/routes'
import AssetNavigation from './asset-navigation'
export default function NativeAsset ({ nativeCurrency }) {
const selectedAccountName = useSelector((state) => getSelectedIdentity(state).name)
const history = useHistory()
return (
<>
<AssetNavigation
accountName={selectedAccountName}
assetName={nativeCurrency}
onBack={() => history.push(DEFAULT_ROUTE)}
/>
<EthOverview className="asset__overview" />
<TransactionList hideTokenTransactions />
</>
)
}
NativeAsset.propTypes = {
nativeCurrency: PropTypes.string.isRequired,
}