diff --git a/src/covisart/Product.js b/src/covisart/Product.js index afd6305..6deffd2 100644 --- a/src/covisart/Product.js +++ b/src/covisart/Product.js @@ -11,7 +11,7 @@ import { useSnapshot } from 'valtio' import { state } from './store' import Configuration from './Configuration' import ReactGA from "react-ga4"; - +import { Order } from './system/OrderRequest'; const Product = () => { const [selectedTab, setSelectedTab] = useState(0); @@ -47,7 +47,7 @@ const Product = () => { const handleSubmit = event => { event.preventDefault(); // 👈️ prevent page refresh - uploadData(state) + Order(state) openNotification('bottomRight') }; return ( diff --git a/src/covisart/system/OrderRequest.js b/src/covisart/system/OrderRequest.js index 3a9c680..554898f 100644 --- a/src/covisart/system/OrderRequest.js +++ b/src/covisart/system/OrderRequest.js @@ -1,6 +1,6 @@ import Axios from "axios"; -export const uploadData = (state) => { +export const Order = (state) => { const data = { email: state.email, name: state.name,