🎨 styles: checkout page

:%s
This commit is contained in:
lytrankieio123
2021-10-20 16:40:42 +07:00
parent f2c23c4527
commit bbbf4f7adc
6 changed files with 42 additions and 17 deletions

View File

@@ -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 />