diff options
Diffstat (limited to 'storefront/pages/order-confirmation.js')
| -rw-r--r-- | storefront/pages/order-confirmation.js | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/storefront/pages/order-confirmation.js b/storefront/pages/order-confirmation.js index 4c7930f..c1ce8df 100644 --- a/storefront/pages/order-confirmation.js +++ b/storefront/pages/order-confirmation.js @@ -1,17 +1,17 @@ -import { useRouter } from "next/router" - -export default function OrderConfirmationPage() { - const router = useRouter() - const { order_id: orderId } = router.query - - return ( - <div style={{ maxWidth: "520px", margin: "0 auto" }}> - <h1>Merci pour votre commande</h1> - {orderId ? ( - <p>Votre commande a bien été enregistrée : {orderId}</p> - ) : ( - <p>Votre commande a bien été enregistrée.</p> - )} - </div> - ) -} +import { useRouter } from "next/router"
+
+export default function OrderConfirmationPage() {
+ const router = useRouter()
+ const { order_id: orderId } = router.query
+
+ return (
+ <div style={{ maxWidth: "520px", margin: "0 auto" }}>
+ <h1>Merci pour votre commande</h1>
+ {orderId ? (
+ <p>Votre commande a bien été enregistrée : {orderId}</p>
+ ) : (
+ <p>Votre commande a bien été enregistrée.</p>
+ )}
+ </div>
+ )
+}
|
