Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/components/Home/TokenList.js
import React from 'react'; | import React from 'react'; | ||||
import PropTypes from 'prop-types'; | import PropTypes from 'prop-types'; | ||||
import TokenListItem from './TokenListItem'; | import TokenListItem from './TokenListItem'; | ||||
import { Link } from 'react-router-dom'; | import { Link } from 'react-router-dom'; | ||||
import { formatBalance } from '@utils/formatting'; | import { formatBalance } from 'utils/formatting'; | ||||
const TokenList = ({ tokens }) => { | const TokenList = ({ tokens }) => { | ||||
return ( | return ( | ||||
<div> | <div> | ||||
{tokens.map(token => ( | {tokens.map(token => ( | ||||
<Link key={token.tokenId} to={`/send-token/${token.tokenId}`}> | <Link key={token.tokenId} to={`/send-token/${token.tokenId}`}> | ||||
<TokenListItem | <TokenListItem | ||||
ticker={token.info.tokenTicker} | ticker={token.info.tokenTicker} | ||||
Show All 14 Lines |