diff --git a/packages/ui/src/Earn/Modals/BondModal.tsx b/packages/ui/src/Earn/Modals/BondModal.tsx index 808a6ee2..d83d2657 100644 --- a/packages/ui/src/Earn/Modals/BondModal.tsx +++ b/packages/ui/src/Earn/Modals/BondModal.tsx @@ -1,5 +1,12 @@ import React, { useState, useEffect, useMemo, useCallback } from "react"; -import { Box, Modal, Typography, useMediaQuery, useTheme } from "@mui/material"; +import { + Box, + IconButton, + Modal, + Typography, + useMediaQuery, + useTheme, +} from "@mui/material"; import { motion } from "framer-motion"; import { Button } from "../../Button/Button"; import { TokenBox } from "../../Swap"; // Import TokenBox from Swap components @@ -283,7 +290,6 @@ export const BondModal = ({ overflow: "auto", borderRadius: "20px", border: "1px solid rgba(71, 85, 105, 0.3)", - padding: { xs: spacing.lg, md: "2rem" }, backdropFilter: "blur(20px)", boxShadow: "0 20px 60px rgba(0, 0, 0, 0.5)", outline: "none", @@ -304,61 +310,121 @@ export const BondModal = ({ }} /> - - - {isPairStrategy ? "Provide Liquidity" : "Bond to"} {strategy.name} - - - + + - - - + {strategy.name || "Strategy"} + + + {isPairStrategy ? "Provide Liquidity" : "Bond Strategy"} •{" "} + {strategy.category || "Yield Farming"} + + + + + + + + + + + {/* Subtle gradient overlay */} + - + + {/* Enhanced Header with premium styling */} + - - {isComplete - ? "Claiming Complete" - : isClaiming - ? currentIndex >= 0 && currentIndex < itemsRef.current.length // Use itemsRef for name consistency during cycle - ? `Claiming: ${ - itemsRef.current[currentIndex]?.metadata.name || // Get name from ref - `Item ${currentIndex + 1}` - }` - : "Claiming Rewards..." - : "Claim All Rewards"} - - - + + - - - + Claim All Rewards + + + Batch Claim • {claimableStrategies.length} Strategies + + + + + + + + + + {/* Content area with padding */} + + {/* Subtle gradient overlay */} + - + + {/* Enhanced Header with premium styling */} + - - Unbond from {strategy.name} - - - + + - - - + {strategy?.name || "Strategy"} + + + Withdraw Stake • {strategy?.category || "Yield Farming"} + + + + + + + + + {showIndividualStakes ? ( <>