order create update field

This commit is contained in:
Samandar Turgunboyev
2025-12-26 17:10:05 +05:00
parent 9c89570c4a
commit 7464ec9768
3 changed files with 6 additions and 4 deletions

View File

@@ -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",

View File

@@ -22,6 +22,8 @@ export interface OrderCreateBody {
comment: string;
long: number;
lat: number;
date: string;
time: string;
}
export const cart_api = {

View File

@@ -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,
});
}