From 5d81f857da87126cacd8051e8d436ef304083f56 Mon Sep 17 00:00:00 2001 From: Samandar Turgunboyev Date: Wed, 11 Mar 2026 20:01:52 +0500 Subject: [PATCH] validation added --- src/features/cart/ui/OrderPage.tsx | 59 +++++++++++++------- src/features/profile/ui/RefreshOrder.tsx | 25 +++++++-- src/shared/config/i18n/messages/uz.d.json.ts | 18 +----- src/shared/ui/textarea.tsx | 2 +- 4 files changed, 62 insertions(+), 42 deletions(-) diff --git a/src/features/cart/ui/OrderPage.tsx b/src/features/cart/ui/OrderPage.tsx index a503346..b502e9c 100644 --- a/src/features/cart/ui/OrderPage.tsx +++ b/src/features/cart/ui/OrderPage.tsx @@ -221,6 +221,7 @@ const OrderPage = () => { }; const cityValue = form.watch('city'); + const comment = form.watch('comment'); useEffect(() => { if (!cityValue || cityValue.length < 3) return; @@ -368,25 +369,45 @@ const OrderPage = () => { ( - - - -