diff options
Diffstat (limited to 'storefront/pages/order-confirmation.js')
| -rw-r--r-- | storefront/pages/order-confirmation.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/storefront/pages/order-confirmation.js b/storefront/pages/order-confirmation.js new file mode 100644 index 0000000..4c7930f --- /dev/null +++ b/storefront/pages/order-confirmation.js @@ -0,0 +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> + ) +} |
