diff --git a/frontend/src/components/ReportsFeatures.tsx b/frontend/src/components/ReportsFeatures.tsx index 8f5b1fb..bc7e3c8 100644 --- a/frontend/src/components/ReportsFeatures.tsx +++ b/frontend/src/components/ReportsFeatures.tsx @@ -82,7 +82,7 @@ export function ReportsFeatures() {

بروزرسانی لحظه‌ای

- بازار داخلی هر ۶۰ ثانیه، کامودیتی به‌صورت زنده، و سهام فولادی هر ۵ دقیقه. + بازار داخلی، کامودیتی و سهام فولادی به‌صورت لحظه‌ای و زنده.

diff --git a/frontend/src/components/ReportsGallery.tsx b/frontend/src/components/ReportsGallery.tsx index 51d0890..97bd6b2 100644 --- a/frontend/src/components/ReportsGallery.tsx +++ b/frontend/src/components/ReportsGallery.tsx @@ -20,7 +20,7 @@ const REPORTS: ReportItem[] = [ { id: "domestic", title: "بازار داخلی — ارز، طلا و سکه", - description: "نرخ زنده‌ی ارز، طلا و سکه؛ هر ۶۰ ثانیه با فلش رنگیِ تغییر.", + description: "نرخ زنده‌ی ارز، طلا و سکه با نمایش لحظه‌ای تغییرات.", href: "/dashboard", image: "https://images.unsplash.com/photo-1610375461246-83df859d849d?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=1080", @@ -52,7 +52,7 @@ const REPORTS: ReportItem[] = [ { id: "steel", title: "سهام فولادی", - description: "بزرگ‌ترین شرکت‌های فولادی جهان بر اساس ارزش بازار، هر ۵ دقیقه.", + description: "بزرگ‌ترین شرکت‌های فولادی جهان بر اساس ارزش بازار.", href: "/dashboard", image: "https://images.unsplash.com/photo-1565008447742-97f6f38c985c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=1080", diff --git a/frontend/src/routes/dashboard.tsx b/frontend/src/routes/dashboard.tsx index 40e8554..a2a6c35 100644 --- a/frontend/src/routes/dashboard.tsx +++ b/frontend/src/routes/dashboard.tsx @@ -329,7 +329,6 @@ function DomesticView() { live={ready} title="بازار داخلی" subtitle="سکه، طلا و ارز — زنده" - badge="هر ۶۰ ثانیه" lastUpdate={lastUpdate} /> @@ -1477,7 +1476,6 @@ function SteelStocksView() { totalCap >= 1000 ? (totalCap / 1000).toFixed(2) + "T$" : totalCap.toFixed(0) + "B$" }`, )} - badge="هر ۵ دقیقه" lastUpdate={lastUpdate} /> @@ -2461,7 +2459,6 @@ function CryptoView() { live={coins.length > 0} title="کریپتو" subtitle="بازار ارزهای دیجیتال — نرخ لحظه‌ای" - badge="هر ۶۰ ثانیه" lastUpdate={data?.fetched_at ? new Date(data.fetched_at).toLocaleTimeString("fa-IR") : ""} /> @@ -3723,7 +3720,7 @@ function ViewHeader({ live: boolean; title: string; subtitle: string; - badge: string; + badge?: string; lastUpdate: string; }) { return ( @@ -3737,9 +3734,11 @@ function ViewHeader({ )} />

{title}

- - {badge} - + {badge && ( + + {badge} + + )}

{subtitle}

diff --git a/frontend/src/routes/index.tsx b/frontend/src/routes/index.tsx index 3b61e33..ab9948f 100644 --- a/frontend/src/routes/index.tsx +++ b/frontend/src/routes/index.tsx @@ -392,7 +392,7 @@ function Landing() { } title="بازار داخلی" - desc="نرخ ارز، هر ۶۰ ثانیه. تغییر قیمت با فلش رنگی مشخص می‌شود." + desc="نرخ ارز و طلا. تغییر قیمت با فلش رنگی مشخص می‌شود." meta={currencyCount ? `${currencyCount} ارز` : "۳۶ ارز"} highlight /> @@ -522,7 +522,7 @@ function LiveBoard({ currencies }: { currencies: CurRow[] }) { )}

- نرخ‌ها هر ۶۰ ثانیه بروزرسانی می‌شوند؛ تغییر با رنگ مشخص می‌شود. + نرخ‌ها به‌صورت لحظه‌ای بروزرسانی می‌شوند؛ تغییر با رنگ مشخص می‌شود.

);