From 5892a52b8bd5724f9b894031fe0df39aa8316fb2 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 2 Sep 2024 21:01:00 +0800 Subject: [PATCH] fix epoch3 issue --- public/img/icon-sector-1.svg | 3 -- public/img/icon-sector-assets.svg | 5 ++++ ...n-sector-2.svg => icon-sector-boosted.svg} | 0 ...on-sector-5.svg => icon-sector-gamefi.svg} | 0 ...n-sector-4.svg => icon-sector-lending.svg} | 0 ...con-sector-6.svg => icon-sector-other.svg} | 0 public/img/icon-sector-perpdex.svg | 3 ++ ...sector-7.svg => icon-sector-portfolio.svg} | 0 ...n-sector-3.svg => icon-sector-spotdex.svg} | 0 src/pages/DashboardS2/index2.tsx | 16 +++++----- src/pages/Leaderboard/index.tsx | 30 +++++++++++-------- 11 files changed, 33 insertions(+), 24 deletions(-) delete mode 100644 public/img/icon-sector-1.svg create mode 100644 public/img/icon-sector-assets.svg rename public/img/{icon-sector-2.svg => icon-sector-boosted.svg} (100%) rename public/img/{icon-sector-5.svg => icon-sector-gamefi.svg} (100%) rename public/img/{icon-sector-4.svg => icon-sector-lending.svg} (100%) rename public/img/{icon-sector-6.svg => icon-sector-other.svg} (100%) create mode 100644 public/img/icon-sector-perpdex.svg rename public/img/{icon-sector-7.svg => icon-sector-portfolio.svg} (100%) rename public/img/{icon-sector-3.svg => icon-sector-spotdex.svg} (100%) diff --git a/public/img/icon-sector-1.svg b/public/img/icon-sector-1.svg deleted file mode 100644 index c4d0619c..00000000 --- a/public/img/icon-sector-1.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/public/img/icon-sector-assets.svg b/public/img/icon-sector-assets.svg new file mode 100644 index 00000000..b6e76832 --- /dev/null +++ b/public/img/icon-sector-assets.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/public/img/icon-sector-2.svg b/public/img/icon-sector-boosted.svg similarity index 100% rename from public/img/icon-sector-2.svg rename to public/img/icon-sector-boosted.svg diff --git a/public/img/icon-sector-5.svg b/public/img/icon-sector-gamefi.svg similarity index 100% rename from public/img/icon-sector-5.svg rename to public/img/icon-sector-gamefi.svg diff --git a/public/img/icon-sector-4.svg b/public/img/icon-sector-lending.svg similarity index 100% rename from public/img/icon-sector-4.svg rename to public/img/icon-sector-lending.svg diff --git a/public/img/icon-sector-6.svg b/public/img/icon-sector-other.svg similarity index 100% rename from public/img/icon-sector-6.svg rename to public/img/icon-sector-other.svg diff --git a/public/img/icon-sector-perpdex.svg b/public/img/icon-sector-perpdex.svg new file mode 100644 index 00000000..3717741b --- /dev/null +++ b/public/img/icon-sector-perpdex.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/img/icon-sector-7.svg b/public/img/icon-sector-portfolio.svg similarity index 100% rename from public/img/icon-sector-7.svg rename to public/img/icon-sector-portfolio.svg diff --git a/public/img/icon-sector-3.svg b/public/img/icon-sector-spotdex.svg similarity index 100% rename from public/img/icon-sector-3.svg rename to public/img/icon-sector-spotdex.svg diff --git a/src/pages/DashboardS2/index2.tsx b/src/pages/DashboardS2/index2.tsx index 78b94b4f..da2fd451 100644 --- a/src/pages/DashboardS2/index2.tsx +++ b/src/pages/DashboardS2/index2.tsx @@ -282,37 +282,37 @@ export default function Dashboard() { const tabs2 = [ { - iconURL: "/img/icon-sector-1.svg", + iconURL: "/img/icon-sector-assets.svg", name: "Assets", category: "holding", }, { - iconURL: "/img/icon-sector-2.svg", + iconURL: "/img/icon-sector-boosted.svg", name: "Boosted", category: "nativeboost", }, { - iconURL: "/img/icon-sector-3.svg", + iconURL: "/img/icon-sector-spotdex.svg", name: "Spot DEX", category: "spotdex", }, { - iconURL: "/img/icon-sector-4.svg", + iconURL: "/img/icon-sector-perpdex.svg", name: "Perp DEX", category: "perpdex", }, { - iconURL: "/img/icon-sector-5.svg", + iconURL: "/img/icon-sector-lending.svg", name: "Lending & Staking", category: "lending", }, // { - // iconURL: "/img/icon-sector-6.svg", + // iconURL: "/img/icon-sector-gamefi.svg", // name: "GameFi", // category: "gamefi", // }, { - iconURL: "/img/icon-sector-7.svg", + iconURL: "/img/icon-sector-other.svg", name: "Others", category: "other", }, @@ -766,7 +766,7 @@ export default function Dashboard() { onClick={() => setTabs2Active(99)} > diff --git a/src/pages/Leaderboard/index.tsx b/src/pages/Leaderboard/index.tsx index 838bf7db..fa59937a 100644 --- a/src/pages/Leaderboard/index.tsx +++ b/src/pages/Leaderboard/index.tsx @@ -479,66 +479,70 @@ export default function Leaderboard() { { name: "Holding", category: "holding", - iconURL: "/img/icon-sector-1.svg", + iconURL: "/img/icon-sector-assets.svg", }, { name: "Boosted", category: "nativeboost", - iconURL: "/img/icon-sector-2.svg", + iconURL: "/img/icon-sector-boosted.svg", }, { name: "Spot DEX", category: "spotdex", - iconURL: "/img/icon-sector-3.svg", + iconURL: "/img/icon-sector-spotdex.svg", }, { name: "Perp DEX", category: "perpdex", - iconURL: "/img/icon-sector-4.svg", + iconURL: "/img/icon-sector-perpdex.svg", }, { name: "Lending", category: "lending", - iconURL: "/img/icon-sector-5.svg", + iconURL: "/img/icon-sector-lending.svg", }, // { name: "GameFi", category: "gamefi" }, { name: "Other", category: "other", - iconURL: "/img/icon-sector-7.svg", + iconURL: "/img/icon-sector-other.svg", }, ] : [ { name: "Holding", category: "holding", - iconURL: "/img/icon-sector-1.svg", + iconURL: "/img/icon-sector-assets.svg", }, { name: "Boosted", category: "nativeboost", - iconURL: "/img/icon-sector-2.svg", + iconURL: "/img/icon-sector-boosted.svg", }, { name: "Spot DEX", category: "spotdex", - iconURL: "/img/icon-sector-3.svg", + iconURL: "/img/icon-sector-spotdex.svg", }, { name: "Perp DEX", category: "perpdex", - iconURL: "/img/icon-sector-4.svg", + iconURL: "/img/icon-sector-perpdex.svg", }, { name: "Lending", category: "lending", - iconURL: "/img/icon-sector-5.svg", + iconURL: "/img/icon-sector-lending.svg", + }, + { + name: "GameFi", + category: "gamefi", + iconURL: "/img/icon-sector-gamefi.svg", }, - { name: "GameFi", category: "gamefi" }, { name: "Other", category: "other", - iconURL: "/img/icon-sector-7.svg", + iconURL: "/img/icon-sector-other.svg", }, ]; }, [epochActive]);