diff --git a/client/src/components/Welcome.jsx b/client/src/components/Welcome.jsx index a009dfa..c1122ea 100644 --- a/client/src/components/Welcome.jsx +++ b/client/src/components/Welcome.jsx @@ -7,7 +7,8 @@ import { TransactionContext } from "../context/TransactionContext"; import { shortenAddress } from "../utils/shortenAddress"; import { Loader } from "."; -const companyCommonStyles = "min-h-[70px] sm:px-0 px-2 sm:min-w-[120px] flex justify-center items-center border-[0.5px] border-gray-400 text-sm font-light text-white"; +const companyCommonStyles = + "min-h-[70px] sm:px-0 px-2 sm:min-w-[120px] flex justify-center items-center border-[0.5px] border-gray-400 text-sm font-light text-white"; const Input = ({ placeholder, name, type, value, handleChange }) => ( ( ); const Welcome = () => { - const { currentAccount, connectWallet, handleChange, sendTransaction, formData, isLoading } = useContext(TransactionContext); + const { + currentAccount, + connectWallet, + handleChange, + sendTransaction, + formData, + isLoading, + } = useContext(TransactionContext); const handleSubmit = (e) => { const { addressTo, amount, keyword, message } = formData; @@ -41,7 +49,8 @@ const Welcome = () => { Send Crypto
across the world

- Explore the crypto world. Buy and sell cryptocurrencies easily on Krypto. + Explore the crypto world. Buy and sell cryptocurrencies easily on + Krypto.

{!currentAccount && ( - )} + {isLoading ? ( + + ) : ( + + )} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..126eef0 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "project_web3.0", + "lockfileVersion": 2, + "requires": true, + "packages": {} +}