MCPcopy Create free account
hub / github.com/basir/node-react-ecommerce / submitHandler

Function submitHandler

frontend/src/screens/ShippingScreen.js:16–20  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

14 const dispatch = useDispatch();
15
16 const submitHandler = (e) => {
17 e.preventDefault();
18 dispatch(saveShipping({ address, city, postalCode, country }));
19 props.history.push('payment');
20 }
21 return <div>
22 <CheckoutSteps step1 step2 ></CheckoutSteps>
23 <div className="form">

Callers

nothing calls this directly

Calls 1

saveShippingFunction · 0.90

Tested by

no test coverage detected