MCPcopy Create free account
hub / github.com/GreatStackDev/gocart / handleSubmit

Function handleSubmit

components/AddressModal.jsx:26–30  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

24 }
25
26 const handleSubmit = async (e) => {
27 e.preventDefault()
28
29 setShowAddressModal(false)
30 }
31
32 return (
33 <form onSubmit={e => toast.promise(handleSubmit(e), { loading: 'Adding Address...' })} className="fixed inset-0 z-50 bg-white/60 backdrop-blur h-screen flex items-center justify-center">

Callers 1

AddressModalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected