diff --git a/packages/nextjs/app/borrow/page.tsx b/packages/nextjs/app/borrow/page.tsx index 9d1deae..5ac8e28 100644 --- a/packages/nextjs/app/borrow/page.tsx +++ b/packages/nextjs/app/borrow/page.tsx @@ -5,6 +5,7 @@ import { useAccount } from "wagmi"; import { SkipTimeComponent } from "~~/components/dev/SkipTimeComponent"; import { useScaffoldWriteContract } from "~~/hooks/scaffold-eth"; import { useAgreements } from "~~/hooks/useAgreements"; +import { notification } from "~~/utils/scaffold-eth"; export default function BorrowPage() { const { address: connectedAddress } = useAccount(); @@ -26,13 +27,14 @@ export default function BorrowPage() { args: [id as unknown as bigint], value: monthlyPayment, }); - alert("Agreement started successfully!"); + notification.success("Agreement started successfully!"); reloadAgreements(); } catch (e) { console.log({ e }); - alert("Failed to start agreement. Please try again."); + notification.error("Failed to start agreement. Please try again."); } }, + // eslint-disable-next-line react-hooks/exhaustive-deps [agreements, reloadAgreements], ); @@ -44,13 +46,14 @@ export default function BorrowPage() { args: [id as unknown as bigint], value: monthlyPayment, }); - alert("Payment made successfully!"); + notification.success("Payment made successfully!"); reloadAgreements(); } catch (e) { console.log({ e }); - alert("Failed to make payment. Please try again."); + notification.error("Failed to make payment. Please try again."); } }, + // eslint-disable-next-line react-hooks/exhaustive-deps [agreements, reloadAgreements], ); diff --git a/packages/nextjs/components/Footer.tsx b/packages/nextjs/components/Footer.tsx index f0daa30..d74b5c4 100644 --- a/packages/nextjs/components/Footer.tsx +++ b/packages/nextjs/components/Footer.tsx @@ -2,9 +2,7 @@ import React from "react"; import Link from "next/link"; import { hardhat } from "viem/chains"; import { CurrencyDollarIcon, MagnifyingGlassIcon } from "@heroicons/react/24/outline"; -import { HeartIcon } from "@heroicons/react/24/outline"; import { SwitchTheme } from "~~/components/SwitchTheme"; -import { BuidlGuidlLogo } from "~~/components/assets/BuidlGuidlLogo"; import { Faucet } from "~~/components/scaffold-eth"; import { useTargetNetwork } from "~~/hooks/scaffold-eth/useTargetNetwork"; import { useGlobalState } from "~~/services/store/store";