Skip to content

Commit

Permalink
remove custom Spinner component (scaffold-eth#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
swolidity committed Dec 19, 2023
1 parent 7584b11 commit 4abb680
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 27 deletions.
23 changes: 0 additions & 23 deletions packages/nextjs/components/assets/Spinner.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -25,7 +24,7 @@ export const ContractUI = ({ contractName, className = "" }: ContractUIProps) =>
if (deployedContractLoading) {
return (
<div className="mt-14">
<Spinner width="50px" height="50px" />
<span className="loading loading-spinner loading-lg"></span>
</div>
);
}
Expand Down
3 changes: 1 addition & 2 deletions packages/nextjs/utils/scaffold-eth/notification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
ExclamationTriangleIcon,
InformationCircleIcon,
} from "@heroicons/react/24/solid";
import { Spinner } from "~~/components/assets/Spinner";

type NotificationProps = {
content: React.ReactNode;
Expand All @@ -25,7 +24,7 @@ type NotificationOptions = {

const ENUM_STATUSES = {
success: <CheckCircleIcon className="w-7 text-success" />,
loading: <Spinner />,
loading: <span className="loading loading-spinner loading-sm"></span>,
error: <ExclamationCircleIcon className="w-7 text-error" />,
info: <InformationCircleIcon className="w-7 text-info" />,
warning: <ExclamationTriangleIcon className="w-7 text-warning" />,
Expand Down

0 comments on commit 4abb680

Please sign in to comment.