diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..bd1a581 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,18 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Launch via Yarn", + "runtimeExecutable": "yarn", + "cwd": "${workspaceFolder}", + "args": [ + "start" + ], + } + ] +} \ No newline at end of file diff --git a/package.json b/package.json index 6a532a2..a4be7b7 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "private": true, "homepage": "https://ngs.covisart.com/", "dependencies": { + "@ant-design/icons": "^5.2.6", "@pmndrs/branding": "^0.0.8", "@react-three/drei": "^9.84.3", "@react-three/fiber": "^8.14.3", @@ -27,6 +28,7 @@ "react-axios": "^2.0.6", "react-bootstrap": "^2.8.0", "react-circular-progressbar": "^2.0.4", + "react-country-dropdown": "^1.1.0", "react-countup": "^6.4.2", "react-dom": "^18.2.0", "react-ga4": "^2.1.0", diff --git a/src/covisart/Product.js b/src/covisart/Product.js index 176af26..fa88827 100644 --- a/src/covisart/Product.js +++ b/src/covisart/Product.js @@ -1,6 +1,6 @@ import React, { useState } from 'react'; -import { Space, Table, notification } from 'antd'; -import { PhoneOutlined } from '@ant-design/icons'; +import { Grid, Space, Table, notification, Row } from 'antd'; +import { PhoneOutlined, CheckCircleTwoTone } from '@ant-design/icons'; import { Tab, Tabs, TabList, TabPanel } from 'react-tabs'; import SectionTitle from "../elements/sectionTitle/SectionTitle"; @@ -10,8 +10,12 @@ import { PayloadSelection } from './Selections/PayloadSelection' import { useSnapshot } from 'valtio' import { state } from './store' import Configuration from './Configuration' -import { Order, PingAPI } from './system/OrderRequest'; +import { Order, PingAPI, LocalOrder } from './system/OrderRequest'; import ReactGA from "react-ga4"; + +import { ReactCountryDropdown } from 'react-country-dropdown' +import 'react-country-dropdown/dist/index.css' + const Product = () => { const [selectedTab, setSelectedTab] = useState(0); const [api, contextHolder] = notification.useNotification(); @@ -44,6 +48,7 @@ const Product = () => { event.preventDefault(); // 👈️ prevent page refresh PingAPI(); Order(state); + //LocalOrder(state); openNotification('bottomRight') ReactGA.gtag("event", "purchase", { @@ -54,35 +59,35 @@ const Product = () => { currency: "USD", coupon: "PreOrder", items: [ - { - item_id: "SKU_2110", - item_name: "NGS-360-3 Motion Simulator", - affiliation: "Covisart Online Store", - coupon: "PreOrder", - discount: 1.15, - index: 0, - item_brand: "COVISART", - item_category: "Simulator", - item_list_id: "related_products", - item_list_name: "Related Products", - item_variant: "green", - location_id: "ChIJIQBpAG2ahYAR_6128GcTUEo", - price: 75000, - quantity: 1 - }] + { + item_id: "SKU_2110", + item_name: "NGS-360-3 Motion Simulator", + affiliation: "Covisart Online Store", + coupon: "PreOrder", + discount: 1.15, + index: 0, + item_brand: "COVISART", + item_category: "Simulator", + item_list_id: "related_products", + item_list_name: "Related Products", + item_variant: "green", + location_id: "ChIJIQBpAG2ahYAR_6128GcTUEo", + price: 75000, + quantity: 1 + }] }); }; return (
NGS-360-3 Motion Platform has 3 different color available. All colors are matte and powder painted
-Unit of measurement Kg. It can be changed after later for an extra fee.
-You can only add one accessory on same time, there are 2 accessories available.
-Required motors applied with pre configured payload selection. If you want more motor power, please contact with us.
- -NGS-360-3 Motion Platform has 3 different color available. All colors are matte and powder painted
+Unit of measurement Kg. It can be changed after later for an extra fee.
+You can only add one accessory on same time, there are 2 accessories available.
+Required motors applied with pre configured payload selection. If you want more motor power, please contact with us.
+ +