diff --git a/src/app/farm/FarmPoolRow.tsx b/src/app/farm/FarmPoolRow.tsx index a8f47c3..a1c52e8 100644 --- a/src/app/farm/FarmPoolRow.tsx +++ b/src/app/farm/FarmPoolRow.tsx @@ -1,9 +1,10 @@ "use client"; import NextLink from "next/link"; -import { Button, Flex, Text } from "@chakra-ui/react"; +import { Box, Button, Flex, Text } from "@chakra-ui/react"; import { MetricColumn } from "./EarningRow"; import { memo } from "react"; +import { useCountdown } from "@/hooks/useCountdown"; type LivePoolRow = { id: string; @@ -52,6 +53,12 @@ export const FarmPoolRow = memo(function FarmPoolRow({ isNetworkMismatch, onDeposit, }: FarmPoolRowProps) { + // Issue #234: surface lock status here too, not just in "My Earnings" — + // a user browsing the full pool list shouldn't have to click into a pool + // they already have a position in just to see when it unlocks. + const hasStake = farm.lockedAmount > 0; + const countdown = useCountdown(farm.lockedAt + farm.lockPeriodSeconds * 1000); + return ( + {hasStake && ( + + + Unlock status + + + {countdown.label} + + + )} {isConnected && (