From 289fb05a927303de2f36ae1d4f9a42a246c764c9 Mon Sep 17 00:00:00 2001 From: Mahyar Khanbolooki Date: Tue, 12 Aug 2025 23:43:06 +0330 Subject: [PATCH] fix: some dark theme styles --- src/app/[name]/(Main)/[id]/page.tsx | 17 +++++++++-------- src/app/[name]/(Profile)/profile/edit/page.tsx | 2 +- src/components/button/PrimaryButton.tsx | 2 +- src/components/menu/SideMenu.tsx | 6 +++--- 4 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/app/[name]/(Main)/[id]/page.tsx b/src/app/[name]/(Main)/[id]/page.tsx index 99583d9..75e290e 100644 --- a/src/app/[name]/(Main)/[id]/page.tsx +++ b/src/app/[name]/(Main)/[id]/page.tsx @@ -2,6 +2,7 @@ import MinusIcon from '@/components/icons/MinusIcon' import PlusIcon from '@/components/icons/PlusIcon' +import { ef } from '@/lib/helpers/utfNumbers' import { useReceiptStore } from '@/zustand/receiptStore' import { motion } from 'framer-motion' import { ArrowLeft, Clock, Cup, Heart, TruckTick } from 'iconsax-react' @@ -39,24 +40,24 @@ function FoodPage({ }: Props) { -
+
کباب چوبی مخصوص
-
- زمان پخت و آماده سازی: 25 دقیقه + زمان پخت و آماده سازی: {ef('25')} دقیقه
- 1500 امتیاز برای هر بار خرید + {ef('1500')} امتیاز برای هر بار خرید
@@ -81,13 +82,13 @@ function FoodPage({ }: Props) { className="inline-flex w-full justify-center items-center gap-2" > - افزودن + افزودن ) : ( <> @@ -102,7 +103,7 @@ function FoodPage({ }: Props) { diff --git a/src/app/[name]/(Profile)/profile/edit/page.tsx b/src/app/[name]/(Profile)/profile/edit/page.tsx index 03c220a..69007e0 100644 --- a/src/app/[name]/(Profile)/profile/edit/page.tsx +++ b/src/app/[name]/(Profile)/profile/edit/page.tsx @@ -119,7 +119,7 @@ function ProfileIndex({ }: Props) {
{dateOfBirth ? dateLib.format(dateOfBirth, "yyyy/MM/dd") : "انتخاب کنید"} diff --git a/src/components/button/PrimaryButton.tsx b/src/components/button/PrimaryButton.tsx index 477f362..d6bf423 100644 --- a/src/components/button/PrimaryButton.tsx +++ b/src/components/button/PrimaryButton.tsx @@ -16,7 +16,7 @@ function Button({ children, className, disabled, pending, ...rest }: Props) { disabled={disabled} className={clsx( className, - disabled ? 'bg-disabled text-disabled-text' : 'bg-primary text-background dark:text-foreground hover:bg-primary/60 active:brightness-110', + disabled ? 'bg-disabled text-disabled-text' : 'bg-primary text-white dark:text-foreground hover:bg-primary/90 active:brightness-110', pending && 'bg-transparent! text-transparent! cursor-auto!', 'relative transition-all duration-200 cursor-pointer w-full rounded-normal p-3 font-normal text-sm overflow-clip' )} diff --git a/src/components/menu/SideMenu.tsx b/src/components/menu/SideMenu.tsx index 8bfabde..018eb17 100644 --- a/src/components/menu/SideMenu.tsx +++ b/src/components/menu/SideMenu.tsx @@ -86,7 +86,7 @@ function SideMenu({ menuState, toggleMenuState, nightModeState, togglenightModeS
-
منو
+
منو