fix: поправил подпсиь категорий рыба
This commit is contained in:
@@ -43,8 +43,7 @@ export const getCart = () => axios.get(`${API_URL}/cart/`);
|
||||
export const addToCart = (data) => axios.post(`${API_URL}/cart/`, data);
|
||||
export const updateCartItem = (id, data) =>
|
||||
axios.post(`${API_URL}/cart/${id}`, data);
|
||||
export const removeFromCart = (id) => axios.post(`${API_URL}/cart/${id}`);
|
||||
|
||||
export const removeFromCart = (id) => axios.delete(`${API_URL}/cart/${id}`);
|
||||
export const createOrder = (data) => axios.post(`${API_URL}/orders/`, data);
|
||||
export const getUserOrders = () => axios.get(`${API_URL}/orders/`);
|
||||
export const getOrder = (id) => axios.get(`${API_URL}/orders/${id}`);
|
||||
|
||||
@@ -66,8 +66,10 @@ export default function Cart() {
|
||||
className="w-40 h-40 object-cover rounded-md shrink-0"
|
||||
/>
|
||||
<div className="grow">
|
||||
<p className="font-medium text-lg">{ci.item.name}</p>
|
||||
<p className="text-sm text-white/60">
|
||||
<p className="font-medium text-base md:text-lg">
|
||||
{ci.item.name}
|
||||
</p>
|
||||
<p className="text-xs md:text-sm text-white/60">
|
||||
{ci.quantity} {ci.item.unit} x {ci.item.price}р.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user