From 2b8cc373743829fb3e18fbdfc3886120b336110a Mon Sep 17 00:00:00 2001 From: alireza Date: Wed, 3 Jun 2026 01:07:00 +0330 Subject: [PATCH] remove live tab --- src/app/daily-report/page.tsx | 11 +---------- src/components/daily-report/SummaryTab.tsx | 2 +- src/features/daily-report/types.ts | 3 +-- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/src/app/daily-report/page.tsx b/src/app/daily-report/page.tsx index a03d5e8..4e9dbc5 100644 --- a/src/app/daily-report/page.tsx +++ b/src/app/daily-report/page.tsx @@ -8,7 +8,7 @@ import { TABS, TabType } from '@/features/daily-report' import { detectDataGaps } from '@/features/daily-report/utils' import { BarChart3, CalendarIcon, ChevronRight } from 'lucide-react' import Loading from '@/components/Loading' -import { SummaryTab, LiveSummaryCards } from '@/components/daily-report' +import { SummaryTab } from '@/components/daily-report' import { fetchForecastWeather, isToday as checkIsToday, WeatherData } from '@/features/weather' import { Tabs, Button } from '@/components/common' import { DateNavigation } from '@/components/navigation' @@ -303,15 +303,6 @@ function DailyReportContent() { > {{ summary: , - live: , charts: ( }> diff --git a/src/components/daily-report/SummaryTab.tsx b/src/components/daily-report/SummaryTab.tsx index fdcf5e3..ebff7d3 100644 --- a/src/components/daily-report/SummaryTab.tsx +++ b/src/components/daily-report/SummaryTab.tsx @@ -103,7 +103,7 @@ export function SummaryTab({ temperature, humidity, soil, gas, lux, forecastWeat ) : null} {/* Summary Cards Grid */} -
+
{(!visibleParams || visibleParams.length === 0 || visibleParams.includes('temperature')) && (