From c884af5f815efee767f4cc5cea2723ef5a2f72fe Mon Sep 17 00:00:00 2001 From: deepak1067 Date: Thu, 8 Feb 2024 17:20:54 +0530 Subject: [PATCH 1/2] added order page --- car-ui-react/src/pages/Order/OrderPage.js | 13 +++++++++++++ .../src/pages/Order/components/OrderFail.js | 15 +++++++++++++++ .../src/pages/Order/components/OrderSuccess.js | 17 +++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 car-ui-react/src/pages/Order/OrderPage.js create mode 100644 car-ui-react/src/pages/Order/components/OrderFail.js create mode 100644 car-ui-react/src/pages/Order/components/OrderSuccess.js diff --git a/car-ui-react/src/pages/Order/OrderPage.js b/car-ui-react/src/pages/Order/OrderPage.js new file mode 100644 index 0000000..55591d0 --- /dev/null +++ b/car-ui-react/src/pages/Order/OrderPage.js @@ -0,0 +1,13 @@ +import { OrderSuccess } from "./components/OrderSuccess" +import { OrderFail } from "./components/OrderFail" + +export const OrderPage = () => { + const status= true; + + return ( + //
OrderPage
+
+ { status ? : } +
+ ) + } \ No newline at end of file diff --git a/car-ui-react/src/pages/Order/components/OrderFail.js b/car-ui-react/src/pages/Order/components/OrderFail.js new file mode 100644 index 0000000..b1df48f --- /dev/null +++ b/car-ui-react/src/pages/Order/components/OrderFail.js @@ -0,0 +1,15 @@ +export const OrderFail = () => { + return ( +
+
+

+

Payment failed, please try again!

+
+
+

Your order is not confirmed.

+

Connect codebook@example.com for support.

+
+ Check Cart Again +
+ ) + } \ No newline at end of file diff --git a/car-ui-react/src/pages/Order/components/OrderSuccess.js b/car-ui-react/src/pages/Order/components/OrderSuccess.js new file mode 100644 index 0000000..c96b50b --- /dev/null +++ b/car-ui-react/src/pages/Order/components/OrderSuccess.js @@ -0,0 +1,17 @@ +export const OrderSuccess = () => { + return ( +
+
+

+

Thank you user name for order!

+

Your Order ID: user id

+
+
+

Your order is confirmed.

+

Please check your mail (user@email.com) for the eBook.

+

Payment ID: xyz_123456789

+
+ Continue Shopping +
+ ) + } \ No newline at end of file From b47aecf55dfd0342c34893c3860c883b8fe3cb0a Mon Sep 17 00:00:00 2001 From: deepak1067 Date: Fri, 9 Feb 2024 12:09:34 +0530 Subject: [PATCH 2/2] order page added --- car-ui-react/src/pages/Order/components/OrderFail.js | 5 +++-- car-ui-react/src/pages/Order/components/OrderSuccess.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/car-ui-react/src/pages/Order/components/OrderFail.js b/car-ui-react/src/pages/Order/components/OrderFail.js index b1df48f..4913946 100644 --- a/car-ui-react/src/pages/Order/components/OrderFail.js +++ b/car-ui-react/src/pages/Order/components/OrderFail.js @@ -7,9 +7,10 @@ export const OrderFail = () => {

Your order is not confirmed.

-

Connect codebook@example.com for support.

+

Connect AutoMarket@NashTech.com for support.

Check Cart Again ) - } \ No newline at end of file + } + \ No newline at end of file diff --git a/car-ui-react/src/pages/Order/components/OrderSuccess.js b/car-ui-react/src/pages/Order/components/OrderSuccess.js index c96b50b..59edb27 100644 --- a/car-ui-react/src/pages/Order/components/OrderSuccess.js +++ b/car-ui-react/src/pages/Order/components/OrderSuccess.js @@ -8,7 +8,7 @@ export const OrderSuccess = () => {

Your order is confirmed.

-

Please check your mail (user@email.com) for the eBook.

+

Please check your mail (user@email.com) for the purchased Car.

Payment ID: xyz_123456789

Continue Shopping