Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions frontend/src/components/agents/AgentTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,13 @@ function truncateId(id: string): string {
return `${id.slice(0, 6)}…${id.slice(-4)}`
}

function SortIcon({ active, dir }: { active: boolean; dir: SortDir }) {
if (!active) return <ArrowUpDown size={12} aria-hidden="true" />
return dir === 'asc' ? (
<ArrowUp size={12} aria-hidden="true" />
) : (
<ArrowDown size={12} aria-hidden="true" />
)
}

export function AgentTable({
agents,
loading,
sortKey,
sortDir,
onSort,
sortKey: _sortKey,
sortDir: _sortDir,
onSort: _onSort,
onRowClick,
}: AgentTableProps) {
const { t } = useTranslation()
Expand Down
18 changes: 0 additions & 18 deletions frontend/src/components/common/ProtectedRoute.tsx

This file was deleted.

22 changes: 0 additions & 22 deletions frontend/src/components/wallet/TransactionTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,28 +245,6 @@ export function TransactionTable({ transactions, loading, publicKey }: Transacti
/>
)}

<div className={styles.pagination}>
<button type="button" onClick={() => setPage((p) => Math.max(1, p - 1))} disabled={currentPage === 1}>
Previous
</button>
<span>
Page {currentPage} of {totalPages}
</span>
<button type="button" onClick={() => setPage((p) => Math.min(totalPages, p + 1))} disabled={currentPage === totalPages}>
Next
</button>
</div>
<div className={styles.runningTotal}>
{t('wallet.tx.total')} {runningTotal > 0 ? '+' : ''}{runningTotal.toFixed(7)} XLM
</div>
</div>
)
} </span>
</div>
))}
</div>
)}

{filtered.length > 0 && (
<div className={styles.footer}>
<div className={styles.pagination}>
Expand Down