diff --git a/apps/dapp/src/components/ManageVaults/InspectVault.tsx b/apps/dapp/src/components/ManageVaults/InspectVault.tsx index 946f4a37..e3917600 100644 --- a/apps/dapp/src/components/ManageVaults/InspectVault.tsx +++ b/apps/dapp/src/components/ManageVaults/InspectVault.tsx @@ -1,19 +1,19 @@ 'use client' +import { useContext } from "react" import { useSorobanReact } from "@soroban-react/core" +import { ModalContext } from "@/contexts" import { shortenAddress } from "@/helpers/address" -import { useVault, VaultMethod } from "@/hooks/useVault" +import { VaultMethod } from "@/hooks/useVault" import { useAppSelector } from "@/store/lib/storeHooks" -import { Asset, AssetAmmount, VaultData } from "@/store/lib/types" +import { Asset, AssetAmmount, Strategy, VaultData } from "@/store/lib/types" -import { Button, Grid, GridItem, HStack, Icon, Stack, Text } from "@chakra-ui/react" +import { Button, For, Grid, GridItem, HStack, Icon, Stack, Text } from "@chakra-ui/react" import { DialogBody, DialogContent, DialogFooter, DialogHeader } from "../ui/dialog" import { FaRegEdit } from "react-icons/fa" import { IoClose } from "react-icons/io5" import { ClipboardIconButton, ClipboardRoot } from "../ui/clipboard" -import { ModalContext } from "@/contexts" -import { useContext } from "react" export const InspectVault = ({ @@ -68,10 +68,16 @@ export const InspectVault = ({ Strategies: {selectedVault.assets.map((asset: Asset, index: number) => ( - - • {asset.strategies[0]?.name} - {`(${asset.symbol})`} - + + + {(strategy: Strategy, index: number) => ( + + • {strategy.name} + {`(${asset.symbol})`} + + )} + + ))}