diff --git a/bun.lock b/bun.lock index 9517ba5b..51bbc5a7 100644 --- a/bun.lock +++ b/bun.lock @@ -1,5 +1,6 @@ { "lockfileVersion": 1, + "configVersion": 0, "workspaces": { "": { "name": "seamless-protocol-v2-app", diff --git a/src/components/ui/table.tsx b/src/components/ui/table.tsx index 0a28865d..cb29607f 100644 --- a/src/components/ui/table.tsx +++ b/src/components/ui/table.tsx @@ -167,8 +167,8 @@ function TablePagination({
- Showing {startItem} to {endItem} of {totalItems} results - + {totalItems > 0 ? `Showing ${startItem} to ${endItem} of ${totalItems} results` : 'No results found'} +
{/* Only show navigation when there are multiple pages */} diff --git a/src/features/leverage-tokens/components/leverage-token-table/LeverageTokenTable.tsx b/src/features/leverage-tokens/components/leverage-token-table/LeverageTokenTable.tsx index 294b3d97..2eab7964 100644 --- a/src/features/leverage-tokens/components/leverage-token-table/LeverageTokenTable.tsx +++ b/src/features/leverage-tokens/components/leverage-token-table/LeverageTokenTable.tsx @@ -358,20 +358,21 @@ export function LeverageTokenTable({ - - {currentItems.length === 0 ? ( - - ) : ( - currentItems.map((token, index) => { + + {currentItems.length === 0 ? ( + + ) : ( + currentItems.map((token, index) => { const tokenApyData = apyDataMap?.get(token.address) const tokenApyError = apyError || (!apyLoading && !apyDataMap?.has(token.address)) + return ( onTokenClick?.(token)} > diff --git a/src/routes/leverage-tokens.$chainId.$id.tsx b/src/routes/leverage-tokens.$chainId.$id.tsx index f242d928..67e6419a 100644 --- a/src/routes/leverage-tokens.$chainId.$id.tsx +++ b/src/routes/leverage-tokens.$chainId.$id.tsx @@ -374,11 +374,15 @@ export const Route = createFileRoute('/leverage-tokens/$chainId/$id')({
- {apyData?.totalAPY ? ( + {isApyError ? ( + 'No APY' + ) : apyData?.totalAPY !== undefined ? ( `${formatAPY(apyData.totalAPY, 2)} APY` ) : ( @@ -466,12 +470,14 @@ export const Route = createFileRoute('/leverage-tokens/$chainId/$id')({
- {apyData?.totalAPY ? ( + {isApyError ? ( + 'No APY' + ) : apyData?.totalAPY !== undefined ? ( `${formatAPY(apyData.totalAPY, 2)} APY` ) : ( diff --git a/src/routes/vaults.tsx b/src/routes/vaults.tsx index 265c1f0c..ce861e05 100644 --- a/src/routes/vaults.tsx +++ b/src/routes/vaults.tsx @@ -1,4 +1,5 @@ import { createFileRoute } from '@tanstack/react-router' +import { motion } from 'framer-motion' import { Award, ExternalLink } from 'lucide-react' import { useEffect } from 'react' import { PageContainer } from '@/components/PageContainer' @@ -26,7 +27,12 @@ function VaultsPage() {
{/* Hero */} -
+

Seamless Vaults

@@ -39,12 +45,23 @@ function VaultsPage() { with Morpho. Earn competitive returns with battle-tested security.

-
+
- + + + {/* CTA Card */} - + +

@@ -105,7 +122,8 @@ function VaultsPage() {

-
+
+
)