diff --git a/src/features/cart/ui/OrderPage.tsx b/src/features/cart/ui/OrderPage.tsx index 71dbc8c..676cdec 100644 --- a/src/features/cart/ui/OrderPage.tsx +++ b/src/features/cart/ui/OrderPage.tsx @@ -2,7 +2,13 @@ import formatPhone from '@/shared/lib/formatPhone'; import { Button } from '@/shared/ui/button'; -import { Form, FormControl, FormField, FormItem } from '@/shared/ui/form'; +import { + Form, + FormControl, + FormField, + FormItem, + FormMessage, +} from '@/shared/ui/form'; import { Input } from '@/shared/ui/input'; import { Label } from '@/shared/ui/label'; import { zodResolver } from '@hookform/resolvers/zod'; @@ -45,7 +51,7 @@ const OrderPage = () => { lastName: '', lat: '', long: '', - phone: '', + phone: '+998', }, }); @@ -130,7 +136,7 @@ const OrderPage = () => { ) => { const [lat, lon] = e.get('coords'); - setCoords({ latitude: lat, longitude: lon, zoom: 14 }); + setCoords({ latitude: lat, longitude: lon, zoom: 18 }); form.setValue('lat', lat.toString(), { shouldDirty: true }); form.setValue('long', lon.toString(), { shouldDirty: true }); @@ -192,7 +198,7 @@ const OrderPage = () => { if (orderSuccess) { return ( -
+
@@ -227,8 +233,8 @@ const OrderPage = () => { } return ( -
-
+
+ <> {/* Header */}

@@ -254,8 +260,8 @@ const OrderPage = () => { control={form.control} name="firstName" render={({ field }) => ( - -

-
+
); }; diff --git a/src/features/product/ui/Product.tsx b/src/features/product/ui/Product.tsx index 4c2347a..db2efd2 100644 --- a/src/features/product/ui/Product.tsx +++ b/src/features/product/ui/Product.tsx @@ -252,26 +252,6 @@ const ProductDetail = () => {
- {/* Supplier/Agency Information Section */} -
-
-
- {product.supplier.name} -
-
-

- {product.supplier.name} -

-
-
-
- {/* Quantity Selector */}
@@ -318,17 +317,6 @@ const Navbar = () => {
- - - - - -