diff --git a/app/dwarves/earn/fixed-yield/page.tsx b/app/dwarves/earn/fixed-yield/page.tsx deleted file mode 100644 index 4f51405..0000000 --- a/app/dwarves/earn/fixed-yield/page.tsx +++ /dev/null @@ -1,35 +0,0 @@ -"use client"; - -import { LoginPopover } from "@/components/login-popover"; -import { Logo } from "@/components/logo"; -import ProfileDropdown from "@/components/profile-dropdown"; -import { Stake } from "@/components/stake"; -import { TopBar } from "@mochi-ui/core"; -import { LoginWidget, useLoginWidget } from "@mochi-web3/login-widget"; -import { Suspense } from "react"; - -export default function Page() { - const { isLoggedIn, isLoggingIn } = useLoginWidget(); - - return ( -
- } - rightSlot={!isLoggedIn ? : } - /> - {isLoggedIn ? ( - - - - ) : ( -
- {!isLoggingIn && ( -
- -
- )} -
- )} -
- ); -} diff --git a/app/dwarves/earn/flexible-yield/page.tsx b/app/dwarves/earn/flexible-yield/page.tsx deleted file mode 100644 index cc9139c..0000000 --- a/app/dwarves/earn/flexible-yield/page.tsx +++ /dev/null @@ -1,35 +0,0 @@ -"use client"; - -import { LoginPopover } from "@/components/login-popover"; -import { Logo } from "@/components/logo"; -import ProfileDropdown from "@/components/profile-dropdown"; -import { Stake } from "@/components/stake"; -import { TopBar } from "@mochi-ui/core"; -import { LoginWidget, useLoginWidget } from "@mochi-web3/login-widget"; -import { Suspense } from "react"; - -export default function Page() { - const { isLoggedIn, isLoggingIn } = useLoginWidget(); - - return ( -
- } - rightSlot={!isLoggedIn ? : } - /> - {isLoggedIn ? ( - - - - ) : ( -
- {!isLoggingIn && ( -
- -
- )} -
- )} -
- ); -} diff --git a/app/dwarves/page.tsx b/app/dwarves/page.tsx index 48e18cd..4135ff1 100644 --- a/app/dwarves/page.tsx +++ b/app/dwarves/page.tsx @@ -4,6 +4,7 @@ import { Footer } from "@/components/footer"; import { LoginPopover } from "@/components/login-popover"; import { Logo } from "@/components/logo"; import ProfileDropdown from "@/components/profile-dropdown"; +import { FixedStakeModal } from "@/components/stake/fixed/fixed-stake-modal"; import { ROUTES } from "@/constants/routes"; import { Badge, @@ -26,10 +27,22 @@ import { useLoginWidget } from "@mochi-web3/login-widget"; import Image from "next/image"; import Link from "next/link"; import { Suspense, useState } from "react"; +import { useDisclosure } from "@dwarvesf/react-hooks"; +import { FlexibleStakeModal } from "@/components/stake/flexible/flexible-stake-modal"; const Overview = () => { const { isLoggedIn } = useLoginWidget(); const [showInfo, setShowInfo] = useState(false); + const { + isOpen: isOpenFixedStakeModal, + onOpenChange: onOpenChangeFixedStakeModal, + onOpen: onOpenFixedStakeModal, + } = useDisclosure(); + const { + isOpen: isOpenFlexibleStakeModal, + onOpenChange: onOpenChangeFlexibleStakeModal, + onOpen: onOpenFlexibleStakeModal, + } = useDisclosure(); return (
@@ -134,11 +147,13 @@ const Overview = () => { }, }, action: ( - - - + ), }, { @@ -163,11 +178,13 @@ const Overview = () => { }, }, action: ( - - - + ), }, { @@ -371,9 +388,7 @@ const Overview = () => { ), action: ( - - - + ), }, { @@ -434,6 +449,14 @@ const Overview = () => { ))}