fix: remove duplicate FundingChart from dashboard
This commit is contained in:
parent
1a7a77e183
commit
ae1d1f18b3
@ -4,7 +4,6 @@ import { useEffect, useState, useCallback } from "react";
|
||||
import { api, RatesResponse, StatsResponse, HistoryResponse, HistoryPoint } from "@/lib/api";
|
||||
import RateCard from "@/components/RateCard";
|
||||
import StatsCard from "@/components/StatsCard";
|
||||
import FundingChart from "@/components/FundingChart";
|
||||
import {
|
||||
LineChart, Line, XAxis, YAxis, Tooltip, Legend,
|
||||
ResponsiveContainer, ReferenceLine
|
||||
@ -94,14 +93,6 @@ export default function Dashboard() {
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* 7天走势图(FundingChart) */}
|
||||
{history && (
|
||||
<div className="rounded-xl border border-slate-200 bg-white shadow-sm p-6">
|
||||
<h2 className="text-slate-800 font-semibold mb-4">过去7天资金费率走势</h2>
|
||||
<FundingChart history={history} />
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* 历史费率折线图 */}
|
||||
{allTimes.length > 0 && (
|
||||
<div className="rounded-xl border border-slate-200 bg-white shadow-sm p-6">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user