feat(belo): add analysis page with historical stats, chart, and date range picker
This commit is contained in:
@@ -17,9 +17,10 @@ import {
|
||||
GaugeValueText,
|
||||
} from "@/components/ui/gauge";
|
||||
import { useQuotes, useQuoteHistory, useDailyMinMax, useDailyQuotes, useFetchQuotes } from "@/lib/queries";
|
||||
import { Link } from "@tanstack/react-router";
|
||||
import { RelativeTime } from "@/lib/time";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { RefreshCw } from "lucide-react";
|
||||
import { BarChart3, RefreshCw } from "lucide-react";
|
||||
|
||||
const priceFormatter = new Intl.NumberFormat("es-AR", {
|
||||
minimumFractionDigits: 2,
|
||||
@@ -228,6 +229,13 @@ export function BeloPage() {
|
||||
Últ. actualización: <RelativeTime date={belo.timeStamp} />
|
||||
</span>
|
||||
)}
|
||||
<Link
|
||||
to="/quotes/belo/analysis"
|
||||
className="inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors"
|
||||
>
|
||||
<BarChart3 className="h-4 w-4" />
|
||||
Análisis
|
||||
</Link>
|
||||
<button
|
||||
type="button"
|
||||
disabled={isFetching}
|
||||
|
||||
Reference in New Issue
Block a user