order create update field
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev --turbopack",
|
||||
"dev": "next dev --turbopack --port 3002",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"prettier": "prettier src --write",
|
||||
|
||||
@@ -22,6 +22,8 @@ export interface OrderCreateBody {
|
||||
comment: string;
|
||||
long: number;
|
||||
lat: number;
|
||||
date: string;
|
||||
time: string;
|
||||
}
|
||||
|
||||
export const cart_api = {
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
import { BASE_URL } from '@/shared/config/api/URLs';
|
||||
import { useCartId } from '@/shared/hooks/cartId';
|
||||
import formatDate from '@/shared/lib/formatDate';
|
||||
import formatPrice from '@/shared/lib/formatPrice';
|
||||
import { cn } from '@/shared/lib/utils';
|
||||
import { Button } from '@/shared/ui/button';
|
||||
@@ -256,9 +257,8 @@ const OrderPage = () => {
|
||||
items: items,
|
||||
long: Number(value.long),
|
||||
lat: Number(value.lat),
|
||||
// delivery_date: format(deliveryDate, 'yyyy-MM-dd'),
|
||||
// delivery_time_start: timeSlot?.start,
|
||||
// delivery_time_end: timeSlot?.end,
|
||||
date: formatDate.format(deliveryDate, 'YYYY-MM-DD'),
|
||||
time: selectedTimeSlot,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user