From dce913815e485e83121d126b0c65329023294e76 Mon Sep 17 00:00:00 2001 From: ValdiANS Date: Thu, 29 Jan 2026 10:23:58 +0700 Subject: [PATCH] chore: adjust styling in Dashboard related components --- .../pages/dashboard/DashboardProduction.tsx | 13 +++++-------- .../pages/dashboard/chart/DashboardStats.tsx | 17 ++++++++--------- 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/src/components/pages/dashboard/DashboardProduction.tsx b/src/components/pages/dashboard/DashboardProduction.tsx index c3cfaf52..7339e831 100644 --- a/src/components/pages/dashboard/DashboardProduction.tsx +++ b/src/components/pages/dashboard/DashboardProduction.tsx @@ -441,10 +441,6 @@ const DashboardProduction = () => { value={formik.values.startDate} errorMessage={formik.errors.startDate} onChange={formik.handleChange} - className={{ - inputWrapper: - 'rounded-[8px] px-[12px] py-[10px] text-sm border-[#18181B]/10', - }} isError={ Boolean(formik.errors.startDate) && Boolean(formik.touched.startDate) @@ -568,7 +564,6 @@ const DashboardProduction = () => { Boolean(formik.touched.location) } className={{ - label: 'mb-[8px] text-xs font-semibold', select: 'rounded-[8px] text-sm border-[#18181B]/10', }} /> @@ -742,9 +737,11 @@ const DashboardProduction = () => { )} -
- -
+ {formErrorList.length > 0 && ( +
+ +
+ )} {/* Action Buttons */}
diff --git a/src/components/pages/dashboard/chart/DashboardStats.tsx b/src/components/pages/dashboard/chart/DashboardStats.tsx index 13167ba3..f17e18b0 100644 --- a/src/components/pages/dashboard/chart/DashboardStats.tsx +++ b/src/components/pages/dashboard/chart/DashboardStats.tsx @@ -130,8 +130,7 @@ const DashboardStats = ({ data }: DashboardStatsProps) => { { }} variant='bordered' footer={ -
-
+
+
From last month
{trend.value}% @@ -156,15 +155,15 @@ const DashboardStats = ({ data }: DashboardStatsProps) => { -
-

+
+

{cardData.label}

-

+

{formatValue(cardData.value, config.prefix, config.suffix)}