Skip to content

Commit

Permalink
remov ebottm ref and log
Browse files Browse the repository at this point in the history
  • Loading branch information
elclandestin0 committed Jan 10, 2025
1 parent 0c9c823 commit 9d79358
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ const HistoryDesktop: React.FC<HistoryDesktopProps> = () => {
const [visibleTransactions, setVisibleTransactions] = useState<TransactionRecord[]>([])
const [mergedTransactions, setMergedTransactions] = useState<TransactionRecord[]>([])
const headers = ['Type', 'Submitted', 'Token', 'From', 'To', 'Transaction', 'Status', '']
const bottomRef = useRef<HTMLDivElement | null>(null)
const transactionsRef = useRef<HTMLDivElement | null>(null)

// Merge transations only when API data is updated with new data
Expand Down Expand Up @@ -120,7 +119,6 @@ const HistoryDesktop: React.FC<HistoryDesktopProps> = () => {
console.log('....loadig?!')
setVisibleTransactions((prev) => {
const nextItems = mergedTransactions.slice(prev.length, prev.length + 5)
console.log(nextItems)
return [...prev, ...nextItems]
})
}
Expand Down Expand Up @@ -168,7 +166,6 @@ const HistoryDesktop: React.FC<HistoryDesktopProps> = () => {
)}
{visibleTransactions.filter((tx: TransactionRecord) => tx.type === 'DEPOSIT' || tx.type === 'WITHDRAWAL').length === 0 && <div className={styles.noTransactions}> No transactions yet</div>}
</div>
<div ref={bottomRef} />
</div>
)}
</div>
Expand Down

0 comments on commit 9d79358

Please sign in to comment.