about to add a third tab
This commit is contained in:
parent
f64f36ba38
commit
c0e4f59f49
2 changed files with 11 additions and 3 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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 && (
|
||||
|
|
Loading…
Reference in a new issue