style: remove all refresh interval badges and labels from UI

This commit is contained in:
alireza 2026-08-26 14:32:29 +03:30
parent a6e4593b01
commit e358c4ded7
4 changed files with 11 additions and 12 deletions

View File

@ -82,7 +82,7 @@ export function ReportsFeatures() {
<div className="relative z-10 mt-10 space-y-2 text-center"> <div className="relative z-10 mt-10 space-y-2 text-center">
<h2 className="text-lg font-medium">بروزرسانی لحظهای</h2> <h2 className="text-lg font-medium">بروزرسانی لحظهای</h2>
<p className="text-muted-foreground"> <p className="text-muted-foreground">
بازار داخلی هر ۶۰ ثانیه، کامودیتی بهصورت زنده، و سهام فولادی هر ۵ دقیقه. بازار داخلی، کامودیتی و سهام فولادی بهصورت لحظهای و زنده.
</p> </p>
</div> </div>
</CardContent> </CardContent>

View File

@ -20,7 +20,7 @@ const REPORTS: ReportItem[] = [
{ {
id: "domestic", id: "domestic",
title: "بازار داخلی — ارز، طلا و سکه", title: "بازار داخلی — ارز، طلا و سکه",
description: "نرخ زنده‌ی ارز، طلا و سکه؛ هر ۶۰ ثانیه با فلش رنگیِ تغییر.", description: "نرخ زنده‌ی ارز، طلا و سکه با نمایش لحظه‌ای تغییرات.",
href: "/dashboard", href: "/dashboard",
image: image:
"https://images.unsplash.com/photo-1610375461246-83df859d849d?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=1080", "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", id: "steel",
title: "سهام فولادی", title: "سهام فولادی",
description: "بزرگ‌ترین شرکت‌های فولادی جهان بر اساس ارزش بازار، هر ۵ دقیقه.", description: "بزرگ‌ترین شرکت‌های فولادی جهان بر اساس ارزش بازار.",
href: "/dashboard", href: "/dashboard",
image: image:
"https://images.unsplash.com/photo-1565008447742-97f6f38c985c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=1080", "https://images.unsplash.com/photo-1565008447742-97f6f38c985c?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&q=80&w=1080",

View File

@ -329,7 +329,6 @@ function DomesticView() {
live={ready} live={ready}
title="بازار داخلی" title="بازار داخلی"
subtitle="سکه، طلا و ارز — زنده" subtitle="سکه، طلا و ارز — زنده"
badge="هر ۶۰ ثانیه"
lastUpdate={lastUpdate} lastUpdate={lastUpdate}
/> />
@ -1477,7 +1476,6 @@ function SteelStocksView() {
totalCap >= 1000 ? (totalCap / 1000).toFixed(2) + "T$" : totalCap.toFixed(0) + "B$" totalCap >= 1000 ? (totalCap / 1000).toFixed(2) + "T$" : totalCap.toFixed(0) + "B$"
}`, }`,
)} )}
badge="هر ۵ دقیقه"
lastUpdate={lastUpdate} lastUpdate={lastUpdate}
/> />
@ -2461,7 +2459,6 @@ function CryptoView() {
live={coins.length > 0} live={coins.length > 0}
title="کریپتو" title="کریپتو"
subtitle="بازار ارزهای دیجیتال — نرخ لحظه‌ای" subtitle="بازار ارزهای دیجیتال — نرخ لحظه‌ای"
badge="هر ۶۰ ثانیه"
lastUpdate={data?.fetched_at ? new Date(data.fetched_at).toLocaleTimeString("fa-IR") : ""} lastUpdate={data?.fetched_at ? new Date(data.fetched_at).toLocaleTimeString("fa-IR") : ""}
/> />
@ -3723,7 +3720,7 @@ function ViewHeader({
live: boolean; live: boolean;
title: string; title: string;
subtitle: string; subtitle: string;
badge: string; badge?: string;
lastUpdate: string; lastUpdate: string;
}) { }) {
return ( return (
@ -3737,9 +3734,11 @@ function ViewHeader({
)} )}
/> />
<h1 className="text-xl sm:text-2xl font-bold text-foreground">{title}</h1> <h1 className="text-xl sm:text-2xl font-bold text-foreground">{title}</h1>
<span className="text-[11px] font-mono px-2 py-0.5 rounded-full bg-secondary text-muted-foreground"> {badge && (
{badge} <span className="text-[11px] font-mono px-2 py-0.5 rounded-full bg-secondary text-muted-foreground">
</span> {badge}
</span>
)}
</div> </div>
<p className="text-sm text-muted-foreground mt-1">{subtitle}</p> <p className="text-sm text-muted-foreground mt-1">{subtitle}</p>
</div> </div>

View File

@ -392,7 +392,7 @@ function Landing() {
<DomainRow <DomainRow
icon={<Coins className="w-5 h-5" />} icon={<Coins className="w-5 h-5" />}
title="بازار داخلی" title="بازار داخلی"
desc="نرخ ارز، هر ۶۰ ثانیه. تغییر قیمت با فلش رنگی مشخص می‌شود." desc="نرخ ارز و طلا. تغییر قیمت با فلش رنگی مشخص می‌شود."
meta={currencyCount ? `${currencyCount} ارز` : "۳۶ ارز"} meta={currencyCount ? `${currencyCount} ارز` : "۳۶ ارز"}
highlight highlight
/> />
@ -522,7 +522,7 @@ function LiveBoard({ currencies }: { currencies: CurRow[] }) {
)} )}
</div> </div>
<p className="mt-4 text-[11px] text-muted-foreground text-center"> <p className="mt-4 text-[11px] text-muted-foreground text-center">
نرخها هر ۶۰ ثانیه بروزرسانی میشوند؛ تغییر با رنگ مشخص میشود. نرخها بهصورت لحظهای بروزرسانی میشوند؛ تغییر با رنگ مشخص میشود.
</p> </p>
</div> </div>
); );