Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/components/Wallet/Wallet.js
Show First 20 Lines • Show All 205 Lines • ▼ Show 20 Lines | const WalletInfo = () => { | ||||
const { | const { | ||||
wallet, | wallet, | ||||
fiatPrice, | fiatPrice, | ||||
balances, | balances, | ||||
tokens, | tokens, | ||||
parsedTxHistory, | parsedTxHistory, | ||||
apiError, | apiError, | ||||
} = ContextValue; | } = ContextValue; | ||||
Fabien: Please avoid this kind of unrelated layout changes in the diff. This brings no value and… | |||||
bytesofmanAuthorUnsubmitted Done Inline Actionsnoted -- will take this out in amend and take care to avoid in future. bytesofman: noted -- will take this out in amend and take care to avoid in future. | |||||
const [address, setAddress] = React.useState('cashAddress'); | const [address, setAddress] = React.useState('cashAddress'); | ||||
const [activeTab, setActiveTab] = React.useState('txHistory'); | const [activeTab, setActiveTab] = React.useState('txHistory'); | ||||
const hasHistory = parsedTxHistory && parsedTxHistory.length > 0; | const hasHistory = parsedTxHistory && parsedTxHistory.length > 0; | ||||
const handleChangeAddress = () => { | const handleChangeAddress = () => { | ||||
setAddress(address === 'cashAddress' ? 'slpAddress' : 'cashAddress'); | setAddress(address === 'cashAddress' ? 'slpAddress' : 'cashAddress'); | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 151 Lines • Show Last 20 Lines |
Please avoid this kind of unrelated layout changes in the diff. This brings no value and distract from the actual changes to review