diff --git a/packages/nextjs/components/assets/Spinner.tsx b/packages/nextjs/components/assets/Spinner.tsx deleted file mode 100644 index 01f103c98..000000000 --- a/packages/nextjs/components/assets/Spinner.tsx +++ /dev/null @@ -1,23 +0,0 @@ -export const Spinner = ({ width, height }: { width?: string; height?: string }) => { - return ( - - ); -}; diff --git a/packages/nextjs/components/scaffold-eth/Contract/ContractUI.tsx b/packages/nextjs/components/scaffold-eth/Contract/ContractUI.tsx index 84869deca..7127e869a 100644 --- a/packages/nextjs/components/scaffold-eth/Contract/ContractUI.tsx +++ b/packages/nextjs/components/scaffold-eth/Contract/ContractUI.tsx @@ -2,7 +2,6 @@ import { useReducer } from "react"; import { ContractReadMethods } from "./ContractReadMethods"; import { ContractVariables } from "./ContractVariables"; import { ContractWriteMethods } from "./ContractWriteMethods"; -import { Spinner } from "~~/components/assets/Spinner"; import { Address, Balance } from "~~/components/scaffold-eth"; import { useDeployedContractInfo, useNetworkColor } from "~~/hooks/scaffold-eth"; import { useTargetNetwork } from "~~/hooks/scaffold-eth/useTargetNetwork"; @@ -25,7 +24,7 @@ export const ContractUI = ({ contractName, className = "" }: ContractUIProps) => if (deployedContractLoading) { return (
- +
); } diff --git a/packages/nextjs/utils/scaffold-eth/notification.tsx b/packages/nextjs/utils/scaffold-eth/notification.tsx index a0204c78f..cf5784933 100644 --- a/packages/nextjs/utils/scaffold-eth/notification.tsx +++ b/packages/nextjs/utils/scaffold-eth/notification.tsx @@ -7,7 +7,6 @@ import { ExclamationTriangleIcon, InformationCircleIcon, } from "@heroicons/react/24/solid"; -import { Spinner } from "~~/components/assets/Spinner"; type NotificationProps = { content: React.ReactNode; @@ -25,7 +24,7 @@ type NotificationOptions = { const ENUM_STATUSES = { success: , - loading: , + loading: , error: , info: , warning: , @@ -54,7 +53,7 @@ const Notification = ({ : `hover:-translate-y-1 ${t.visible ? "bottom-0" : "-bottom-96"}` }`} > -
{icon ? icon : ENUM_STATUSES[status]}
+
{icon ? icon : ENUM_STATUSES[status]}
{content}
toast.dismiss(t.id)}>