diff --git a/allowance/2-dapp/src/components/modal/index.tsx b/allowance/2-dapp/src/components/modal/index.tsx index 2840b71..9fb6876 100644 --- a/allowance/2-dapp/src/components/modal/index.tsx +++ b/allowance/2-dapp/src/components/modal/index.tsx @@ -1,6 +1,13 @@ +import { ReactNode, MouseEventHandler } from "react"; import style from "./modal.module.scss"; -const PopupOverlay = ({ children, isVisible, type }:any) => ( +interface PopupOverlayProps { + children: ReactNode; + isVisible: boolean; + type?: string; // Adjust the type as per your requirements if type has specific values (e.g., a union of strings) +} + +const PopupOverlay = ({ children, isVisible, type }: PopupOverlayProps) => (
{message}
diff --git a/expense-tracker/2-dapp/src/components/modal/index.tsx b/expense-tracker/2-dapp/src/components/modal/index.tsx index 2840b71..9fb6876 100644 --- a/expense-tracker/2-dapp/src/components/modal/index.tsx +++ b/expense-tracker/2-dapp/src/components/modal/index.tsx @@ -1,6 +1,13 @@ +import { ReactNode, MouseEventHandler } from "react"; import style from "./modal.module.scss"; -const PopupOverlay = ({ children, isVisible, type }:any) => ( +interface PopupOverlayProps { + children: ReactNode; + isVisible: boolean; + type?: string; // Adjust the type as per your requirements if type has specific values (e.g., a union of strings) +} + +const PopupOverlay = ({ children, isVisible, type }: PopupOverlayProps) => ({message}
diff --git a/todo/2-dapp/src/lib/utils.tsx b/todo/2-dapp/src/lib/utils.tsx index 4f701a9..8f97352 100644 --- a/todo/2-dapp/src/lib/utils.tsx +++ b/todo/2-dapp/src/lib/utils.tsx @@ -10,7 +10,7 @@ export const removeNotification = (id: number | string, time?: number) => { setTimeout(() => toast.done(id), time || 3000); }; -export const CustomToast = ({ title, message }: any) => ( +export const CustomToast = ({ title, message }: {title: string, message: string}) => ({message}
diff --git a/todo/2-dapp/src/pages/home/index.tsx b/todo/2-dapp/src/pages/home/index.tsx index 4bec88c..cef7709 100644 --- a/todo/2-dapp/src/pages/home/index.tsx +++ b/todo/2-dapp/src/pages/home/index.tsx @@ -135,7 +135,7 @@ const HomePage = ({ provider, currentWalletAddress }: PageProps) => { // step 1 - Check If Contract is Initialized or not const checkIsContractInitialized = async () => {}; - // step 2 - Intitialize The Contract Very First Time + // step 2 - Initialize the smart contract const initializeContract = async () => {}; // Check whether contract initialized or not