zzz
This commit is contained in:
@@ -2,11 +2,28 @@ import React from 'react'
|
||||
import { useSelector } from 'react-redux'
|
||||
import type { StoreType } from '../../../stores'
|
||||
import type { CartItem } from '../../../types/cart.type'
|
||||
import { Apis } from '../../../apis'
|
||||
import type { Product } from '../../../types/product.type'
|
||||
|
||||
export default function Cart() {
|
||||
const userStore = useSelector((store: StoreType) => store.user)
|
||||
|
||||
|
||||
//
|
||||
//đây là api lấy product id let data = Apis.product.findProductById(productId)
|
||||
// data có interface là Product
|
||||
// cho bạn interface product luôn
|
||||
/*
|
||||
export interface Product {
|
||||
id: string;
|
||||
categoryId: string;
|
||||
price: number;
|
||||
iconUrl: string;
|
||||
isActive: boolean;
|
||||
name: string;
|
||||
des: string;
|
||||
}
|
||||
|
||||
*/
|
||||
return (
|
||||
<div>
|
||||
Cart Page
|
||||
|
||||
Reference in New Issue
Block a user