MCPcopy
hub / github.com/adrianhajdin/project_web3.0 / Input

Function Input

client/src/components/Welcome.jsx:12–21  ·  view source on GitHub ↗
({ placeholder, name, type, value, handleChange })

Source from the content-addressed store, hash-verified

10const 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";
11
12const Input = ({ placeholder, name, type, value, handleChange }) => (
13 <input
14 placeholder={placeholder}
15 type={type}
16 step="0.0001"
17 value={value}
18 onChange={(e) => handleChange(e, name)}
19 className="my-2 w-full rounded-sm p-2 outline-none bg-transparent text-white border-none text-sm white-glassmorphism"
20 />
21);
22
23const Welcome = () => {
24 const { currentAccount, connectWallet, handleChange, sendTransaction, formData, isLoading } = useContext(TransactionContext);

Callers

nothing calls this directly

Calls 1

handleChangeFunction · 0.85

Tested by

no test coverage detected