mirror of
https://github.com/vercel/commerce.git
synced 2025-07-26 03:31:23 +00:00
🎨 styles: checkout page
:%s
This commit is contained in:
@@ -116,22 +116,19 @@ const CheckoutInfo = ({ onViewCart }: CheckoutInfoProps) => {
|
||||
]
|
||||
|
||||
// TODO: remove
|
||||
const { addProduct } = useAddProductToCart()
|
||||
|
||||
const createOrder = () => {
|
||||
addProduct({ variantId: "92", quantity: 2 }, handleAddToCartCallback)
|
||||
}
|
||||
const handleAddToCartCallback = (isSuccess: boolean, message?: string) => {
|
||||
// console.log("after create order: ", isSuccess, message)
|
||||
}
|
||||
// const { addProduct } = useAddProductToCart()
|
||||
|
||||
// const createOrder = () => {
|
||||
// addProduct({ variantId: "92", quantity: 2 }, handleAddToCartCallback)
|
||||
// }
|
||||
// const handleAddToCartCallback = (isSuccess: boolean, message?: string) => {
|
||||
// // console.log("after create order: ", isSuccess, message)
|
||||
// }
|
||||
|
||||
return (
|
||||
<div className={s.warpper}>
|
||||
{/* TODO: remove */}
|
||||
<ButtonCommon onClick={createOrder}>test create order</ButtonCommon>
|
||||
<ButtonCommon onClick={createOrder}>test get activeStep order</ButtonCommon>
|
||||
TOTAL: {order?.totalPrice}
|
||||
{/* <ButtonCommon onClick={createOrder}>test create order</ButtonCommon> */}
|
||||
|
||||
<div className={s.title}>
|
||||
<Logo />
|
||||
|
Reference in New Issue
Block a user