diff --git a/frontend/src/components/VestingTable.tsx b/frontend/src/components/VestingTable.tsx index e190b0a2..cc634a58 100644 --- a/frontend/src/components/VestingTable.tsx +++ b/frontend/src/components/VestingTable.tsx @@ -24,7 +24,7 @@ const VestingTable: React.FC = () => { if (!address) { return []; } - const response = await axios.get(`${BASE_API_URL}vesting-events`, { + const response = await axios.get(`${BASE_API_URL}/vesting-events`, { params: { contract: CONTRACT_ADDR, address: address, @@ -62,52 +62,61 @@ const VestingTable: React.FC = () => { } return ( -
+
{/* Title */} -
Vesting Event
+

Vesting Milestones

{/* Table */} -
-
-
Amount
-
Claimable At
-
Is Claimable
-
Is Claimed
-
+ + + + + + + + + + {paginatedEvents.map((event: VestingEvent, index: number) => ( -
-
{event.amount}
-
{event.claimable_at ? new Date(event.claimable_at * 1000).toLocaleString() : 'N/A'}
-
{event.is_claimable ? 'Yes' : 'No'}
-
{event.is_claimed ? 'Yes' : 'No'}
-
+ + + + + + ))} - + +
AmountClaimable AtIs ClaimableIs Claimed
{event.amount} + {event.claimable_at ? new Date(event.claimable_at * 1000).toLocaleString() : 'N/A'} + {event.is_claimable ? 'Yes' : 'No'}{event.is_claimed ? 'Yes' : 'No'}
{/* Pagination Controls */} -
- - - - Page {currentPage} of {totalPages} - - - -
+ {totalPages > 1 && ( +
+ + + + Page {currentPage} of {totalPages} + + + +
+ )}
); + }; -export default VestingTable; \ No newline at end of file +export default VestingTable;