Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/components/Home/Home.js
Show First 20 Lines • Show All 138 Lines • ▼ Show 20 Lines | const CreateToken = styled(Link)` | ||||
} | } | ||||
`; | `; | ||||
const WalletInfo = () => { | const WalletInfo = () => { | ||||
const ContextValue = React.useContext(WalletContext); | const ContextValue = React.useContext(WalletContext); | ||||
const { wallet, fiatPrice, apiError, cashtabSettings, contactList } = | const { wallet, fiatPrice, apiError, cashtabSettings, contactList } = | ||||
ContextValue; | ContextValue; | ||||
const walletState = getWalletState(wallet); | const walletState = getWalletState(wallet); | ||||
console.log( | |||||
`walletState.balances.totalBalanceInSatoshis`, | |||||
JSON.stringify(walletState.balances), | |||||
); | |||||
const { balances, parsedTxHistory, tokens } = walletState; | const { balances, parsedTxHistory, tokens } = walletState; | ||||
const [activeTab, setActiveTab] = React.useState('txHistory'); | const [activeTab, setActiveTab] = React.useState('txHistory'); | ||||
const hasHistory = parsedTxHistory && parsedTxHistory.length > 0; | const hasHistory = parsedTxHistory && parsedTxHistory.length > 0; | ||||
return ( | return ( | ||||
<> | <> | ||||
<WalletInfoCtn> | <WalletInfoCtn> | ||||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |