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