From 9fb60f61cf19b83a09bd02d222dcb023140993b9 Mon Sep 17 00:00:00 2001 From: azizziy Date: Mon, 5 Jan 2026 14:55:56 +0500 Subject: [PATCH] fix: build error --- src/shared/config/i18n/messages/uz.d.json.ts | 10 ++++----- src/widgets/about/GetToKnow.tsx | 4 ++-- .../about/our-company/ui/OurCompanyBottom.tsx | 2 +- .../our-company/ui/OurCompanyProducts.tsx | 21 ++++++++++--------- .../about/our-company/ui/OurCompanyTop.tsx | 2 +- src/widgets/footer/ui/index.tsx | 4 ++-- src/widgets/sidebar/ui/SidebarMenuItem.tsx | 2 +- src/widgets/sidebar/ui/index.tsx | 12 +++++------ src/widgets/welcome/home-about/ui/index.tsx | 4 ++-- .../welcome/home-checkout/ui/index.tsx | 2 +- .../welcome/home-conditions/ui/index.tsx | 2 +- .../welcome/home-new-products/ui/index.tsx | 2 +- src/widgets/welcome/home-process/ui/index.tsx | 2 +- src/widgets/welcome/home-swiper/ui/index.tsx | 4 ++-- 14 files changed, 36 insertions(+), 37 deletions(-) diff --git a/src/shared/config/i18n/messages/uz.d.json.ts b/src/shared/config/i18n/messages/uz.d.json.ts index 5d538a0..d018747 100644 --- a/src/shared/config/i18n/messages/uz.d.json.ts +++ b/src/shared/config/i18n/messages/uz.d.json.ts @@ -2,9 +2,9 @@ // See: https://next-intl.dev/docs/workflows/typescript#messages-arguments declare const messages: { - HomePage: { - title: 'Salom dunyo!'; - about: 'Go to the about page'; - }; + "HomePage": { + "title": "Salom dunyo!", + "about": "Go to the about page" + } }; -export default messages; +export default messages; \ No newline at end of file diff --git a/src/widgets/about/GetToKnow.tsx b/src/widgets/about/GetToKnow.tsx index 74a8d04..643de23 100644 --- a/src/widgets/about/GetToKnow.tsx +++ b/src/widgets/about/GetToKnow.tsx @@ -73,7 +73,7 @@ const GetToKnow = () => { duration: 2, repeat: Infinity, repeatType: 'reverse', - ease: 'linear', + ease: [0, 0, 1, 1] as const, }} className="absolute left-0 top-0 h-[50%] w-[50%]" > @@ -121,7 +121,7 @@ const GetToKnow = () => { duration: 1, repeat: Infinity, repeatType: 'reverse', - ease: 'linear', + ease: [0, 0, 1, 1] as const, }} className="absolute right-[-10%] top-[-40px] w-[35%] h-[30%]" > diff --git a/src/widgets/about/our-company/ui/OurCompanyBottom.tsx b/src/widgets/about/our-company/ui/OurCompanyBottom.tsx index f60b572..cacc614 100644 --- a/src/widgets/about/our-company/ui/OurCompanyBottom.tsx +++ b/src/widgets/about/our-company/ui/OurCompanyBottom.tsx @@ -59,7 +59,7 @@ const OurCompanyBottom = () => { duration: 2, repeat: Infinity, repeatType: 'reverse', - ease: 'linear', + ease: [0, 0, 1, 1] as const, }} className="absolute left-0 top-0 h-[50%] w-[50%]" > diff --git a/src/widgets/about/our-company/ui/OurCompanyProducts.tsx b/src/widgets/about/our-company/ui/OurCompanyProducts.tsx index 03d4e87..58d878b 100644 --- a/src/widgets/about/our-company/ui/OurCompanyProducts.tsx +++ b/src/widgets/about/our-company/ui/OurCompanyProducts.tsx @@ -14,15 +14,6 @@ const containerVariants = { }, }; -const cardVariants = { - hidden: { opacity: 0, y: 30 }, - visible: { - opacity: 1, - y: 0, - transition: { duration: 0.6, ease: 'easeOut' }, - }, -}; - const OurCompanyProducts = () => { const { data: resProducts, isLoading: loadProducts } = useQuery({ queryKey: ['all-products'], @@ -67,7 +58,17 @@ const OurCompanyProducts = () => { {products && products.length > 0 && products.map((item) => ( - + ))} diff --git a/src/widgets/about/our-company/ui/OurCompanyTop.tsx b/src/widgets/about/our-company/ui/OurCompanyTop.tsx index a2f1c04..6d492f9 100644 --- a/src/widgets/about/our-company/ui/OurCompanyTop.tsx +++ b/src/widgets/about/our-company/ui/OurCompanyTop.tsx @@ -58,7 +58,7 @@ const OurCompanyTop = () => { duration: 2, repeat: Infinity, repeatType: 'reverse', - ease: 'linear', + ease: [0, 0, 1, 1] as const, }} className="absolute left-0 top-0 h-[50%] w-[50%]" > diff --git a/src/widgets/footer/ui/index.tsx b/src/widgets/footer/ui/index.tsx index bdf2d65..3b8a98c 100644 --- a/src/widgets/footer/ui/index.tsx +++ b/src/widgets/footer/ui/index.tsx @@ -38,7 +38,7 @@ const Footer = () => { duration: 1, repeat: Infinity, repeatType: 'reverse', - ease: 'linear', + ease: [0, 0, 1, 1] as const, }} className="absolute top-[-40px] left-[-40px] size-[100px]" > @@ -56,7 +56,7 @@ const Footer = () => { duration: 1, repeat: Infinity, repeatType: 'reverse', - ease: 'linear', + ease: [0, 0, 1, 1] as const, }} className="absolute top-[-40px] right-[-60px] size-[100px]" > diff --git a/src/widgets/sidebar/ui/SidebarMenuItem.tsx b/src/widgets/sidebar/ui/SidebarMenuItem.tsx index ebe171d..81a5f17 100644 --- a/src/widgets/sidebar/ui/SidebarMenuItem.tsx +++ b/src/widgets/sidebar/ui/SidebarMenuItem.tsx @@ -69,7 +69,7 @@ const SidebarMenuItem = ({ item }: ISidebarMenuItemProps) => { open: { opacity: 1, height: 'auto' }, collapsed: { opacity: 0, height: 0 }, }} - transition={{ duration: 0.3, ease: 'easeInOut' }} + transition={{ duration: 0.3, ease: [0.42, 0, 0.58, 1] as const }} className="border-l border-dashed border-l-primary ml-[10px] overflow-hidden" > {item.children.map((child) => ( diff --git a/src/widgets/sidebar/ui/index.tsx b/src/widgets/sidebar/ui/index.tsx index 1f413e3..fb1f2d1 100644 --- a/src/widgets/sidebar/ui/index.tsx +++ b/src/widgets/sidebar/ui/index.tsx @@ -11,12 +11,6 @@ const overlayVariants = { exit: { opacity: 0 }, }; -const sidebarVariants = { - hidden: { x: '-100%' }, // butunlay chapda - visible: { x: 0, transition: { type: 'tween', delay: 0.15 } }, // overlaydan keyin - exit: { x: '-100%', transition: { type: 'tween' } }, -}; - const Sidebar: React.FC = () => { const { isOpen, closeSidebar } = useSidebarStore(); @@ -38,7 +32,11 @@ const Sidebar: React.FC = () => { initial="hidden" animate="visible" exit="exit" - variants={sidebarVariants} + variants={{ + hidden: { x: '-100%' }, // butunlay chapda + visible: { x: 0, transition: { type: 'tween', delay: 0.15 } }, // overlaydan keyin + exit: { x: '-100%', transition: { type: 'tween' } }, + }} className="fixed top-0 bottom-0 left-0 z-50 w-[270px] bg-accent text-white shadow-lg max-h-[100vh] overflow-y-auto [&::-webkit-scrollbar]:w-1 [&::-webkit-scrollbar]:h-1 [&::-webkit-scrollbar]:pr-1 [&::-webkit-scrollbar-thumb]:bg-primary" >
diff --git a/src/widgets/welcome/home-about/ui/index.tsx b/src/widgets/welcome/home-about/ui/index.tsx index f403ec3..09167d5 100644 --- a/src/widgets/welcome/home-about/ui/index.tsx +++ b/src/widgets/welcome/home-about/ui/index.tsx @@ -70,7 +70,7 @@ const HomeAbout = () => { duration: 2, repeat: Infinity, repeatType: 'reverse', - ease: 'linear', + ease: [0, 0, 1, 1] as const, }} className="absolute left-0 top-0 h-[50%] w-[50%]" > @@ -108,7 +108,7 @@ const HomeAbout = () => { duration: 1, repeat: Infinity, repeatType: 'reverse', - ease: 'linear', + ease: [0, 0, 1, 1] as const, }} className="absolute right-[-10%] top-[-40px] w-[40%] h-[40%]" > diff --git a/src/widgets/welcome/home-checkout/ui/index.tsx b/src/widgets/welcome/home-checkout/ui/index.tsx index 43c05d6..935b882 100644 --- a/src/widgets/welcome/home-checkout/ui/index.tsx +++ b/src/widgets/welcome/home-checkout/ui/index.tsx @@ -20,7 +20,7 @@ const cardVariants = { visible: { opacity: 1, y: 0, - transition: { duration: 0.6, ease: 'easeOut' }, + transition: { duration: 0.6, ease: [0, 0.55, 0.45, 1] as const }, }, }; diff --git a/src/widgets/welcome/home-conditions/ui/index.tsx b/src/widgets/welcome/home-conditions/ui/index.tsx index 0dada6c..0a3056d 100644 --- a/src/widgets/welcome/home-conditions/ui/index.tsx +++ b/src/widgets/welcome/home-conditions/ui/index.tsx @@ -18,7 +18,7 @@ const cardVariants = { visible: { opacity: 1, y: 0, - transition: { duration: 0.6, ease: 'easeOut' }, + transition: { duration: 0.6, ease: [0, 0.55, 0.45, 1] as const }, }, }; diff --git a/src/widgets/welcome/home-new-products/ui/index.tsx b/src/widgets/welcome/home-new-products/ui/index.tsx index b6ff09d..d21428e 100644 --- a/src/widgets/welcome/home-new-products/ui/index.tsx +++ b/src/widgets/welcome/home-new-products/ui/index.tsx @@ -19,7 +19,7 @@ const cardVariants = { visible: { opacity: 1, y: 0, - transition: { duration: 0.6, ease: 'easeOut' }, + transition: { duration: 0.6, ease: [0, 0.55, 0.45, 1] as const }, }, }; diff --git a/src/widgets/welcome/home-process/ui/index.tsx b/src/widgets/welcome/home-process/ui/index.tsx index 8f6d1ce..43bc71a 100644 --- a/src/widgets/welcome/home-process/ui/index.tsx +++ b/src/widgets/welcome/home-process/ui/index.tsx @@ -18,7 +18,7 @@ const cardVariants = { visible: { opacity: 1, y: 0, - transition: { duration: 0.6, ease: 'easeOut' }, + transition: { duration: 0.6, ease: [0, 0.55, 0.45, 1] as const }, }, }; diff --git a/src/widgets/welcome/home-swiper/ui/index.tsx b/src/widgets/welcome/home-swiper/ui/index.tsx index de12568..4c16880 100644 --- a/src/widgets/welcome/home-swiper/ui/index.tsx +++ b/src/widgets/welcome/home-swiper/ui/index.tsx @@ -31,7 +31,7 @@ const textVariants = { y: 0, transition: { duration: 1.6, - ease: 'easeOut', + ease: [0, 0.55, 0.45, 1] as const, }, }, }; @@ -46,7 +46,7 @@ const btnsVariants = { y: 0, transition: { duration: 1.6, - ease: 'easeOut', + ease: [0, 0.55, 0.45, 1] as const, }, }, };