about to add a third tab

This commit is contained in:
Anthony 2021-07-29 13:48:33 +02:00
parent f64f36ba38
commit c0e4f59f49
No known key found for this signature in database
GPG key ID: C386D3C93D50E356
2 changed files with 11 additions and 3 deletions

View file

@ -54,7 +54,13 @@ const WalletBalance = (props: Props) => {
utxoCounts,
} = props;
const accountTransactions = props.transactions;
// receive transactions from parent component
let accountTransactions = props.transactions;
// reverse so most recent payments come first
if(accountTransactions){
accountTransactions = accountTransactions.reverse();
}
const [detailsExpanded, setDetailsExpanded] = React.useState(false);
const [accountStatusResponse, setAccountStatusResponse] = React.useState();
@ -86,6 +92,8 @@ const WalletBalance = (props: Props) => {
}
React.useEffect(() => {
(async function(){
const response = await getAccountStatus();

View file

@ -108,7 +108,7 @@ const WalletPage = (props: Props) => {
document.getElementsByClassName('lbc-tab-switcher')[0].style.textDecoration = 'underline';
document.getElementsByClassName('fiat-tab-switcher')[0].style.textDecoration = 'none';
}}
>LBC Transactions</h2>
>LBC Wallet</h2>
<h2 className="fiat-tab-switcher"
style={{display: 'inline-block', textUnderlineOffset: '4px', fontSize: '18px'}}
onClick={() => {
@ -118,7 +118,7 @@ const WalletPage = (props: Props) => {
document.getElementsByClassName('lbc-tab-switcher')[0].style.textDecoration = 'none';
document.getElementsByClassName('fiat-tab-switcher')[0].style.textDecoration = 'underline';
}}
>USD Transactions</h2>
>Account History</h2>
<div className="lbc-transactions">
{/* if the transactions are loading */}
{ loading && (