diff --git a/src/pages/DashboardS2/index2.tsx b/src/pages/DashboardS2/index2.tsx index a3442cc..5663556 100644 --- a/src/pages/DashboardS2/index2.tsx +++ b/src/pages/DashboardS2/index2.tsx @@ -463,68 +463,32 @@ export default function Dashboard() { }; const novaPointsList = useMemo(() => { - const categorys = - epochActive === epochList.length - 1 - ? [ - { - name: "Assets Points", - category: "holding", - }, - { - name: "Native Boost Points", - category: "nativeboost", - }, - { - name: "Spot DEX Points", - category: "spotdex", - }, - { - name: "Perp DEX Points", - category: "perpdex", - }, - { - name: "Lending Points", - category: "lending", - }, - // { - // name: "GameFi Points", - // category: "gamefi", - // }, - { - name: "Others Points", - category: "other", - }, - ] - : [ - { - name: "Assets Points", - category: "holding", - }, - { - name: "Native Boost Points", - category: "nativeboost", - }, - { - name: "Spot DEX Points", - category: "spotdex", - }, - { - name: "Perp DEX Points", - category: "perpdex", - }, - { - name: "Lending Points", - category: "lending", - }, - { - name: "GameFi Points", - category: "gamefi", - }, - { - name: "Others Points", - category: "other", - }, - ]; + const categorys = [ + { + name: "Assets Points", + category: "holding", + }, + { + name: "Native Boost Points", + category: "nativeboost", + }, + { + name: "Spot DEX Points", + category: "spotdex", + }, + { + name: "Perp DEX Points", + category: "perpdex", + }, + { + name: "Lending Points", + category: "lending", + }, + { + name: "Others Points", + category: "other", + }, + ]; const arr = categorys.map((c) => { const userCategoryData = novaCategoryUserPointsTotal.find( diff --git a/src/pages/Leaderboard/index.tsx b/src/pages/Leaderboard/index.tsx index fa59937..8a727cf 100644 --- a/src/pages/Leaderboard/index.tsx +++ b/src/pages/Leaderboard/index.tsx @@ -474,77 +474,38 @@ export default function Leaderboard() { const [categoryList, setCategoryList] = useState([]); const tabs = useMemo(() => { - return epochActive === 2 - ? [ - { - name: "Holding", - category: "holding", - iconURL: "/img/icon-sector-assets.svg", - }, - { - name: "Boosted", - category: "nativeboost", - iconURL: "/img/icon-sector-boosted.svg", - }, - { - name: "Spot DEX", - category: "spotdex", - iconURL: "/img/icon-sector-spotdex.svg", - }, - { - name: "Perp DEX", - category: "perpdex", - iconURL: "/img/icon-sector-perpdex.svg", - }, - { - name: "Lending", - category: "lending", - iconURL: "/img/icon-sector-lending.svg", - }, - // { name: "GameFi", category: "gamefi" }, - { - name: "Other", - category: "other", - iconURL: "/img/icon-sector-other.svg", - }, - ] - : [ - { - name: "Holding", - category: "holding", - iconURL: "/img/icon-sector-assets.svg", - }, - { - name: "Boosted", - category: "nativeboost", - iconURL: "/img/icon-sector-boosted.svg", - }, - { - name: "Spot DEX", - category: "spotdex", - iconURL: "/img/icon-sector-spotdex.svg", - }, - { - name: "Perp DEX", - category: "perpdex", - iconURL: "/img/icon-sector-perpdex.svg", - }, - { - name: "Lending", - category: "lending", - iconURL: "/img/icon-sector-lending.svg", - }, - { - name: "GameFi", - category: "gamefi", - iconURL: "/img/icon-sector-gamefi.svg", - }, - { - name: "Other", - category: "other", - iconURL: "/img/icon-sector-other.svg", - }, - ]; + return [ + { + name: "Holding", + category: "holding", + iconURL: "/img/icon-sector-assets.svg", + }, + { + name: "Boosted", + category: "nativeboost", + iconURL: "/img/icon-sector-boosted.svg", + }, + { + name: "Spot DEX", + category: "spotdex", + iconURL: "/img/icon-sector-spotdex.svg", + }, + { + name: "Perp DEX", + category: "perpdex", + iconURL: "/img/icon-sector-perpdex.svg", + }, + { + name: "Lending", + category: "lending", + iconURL: "/img/icon-sector-lending.svg", + }, + { + name: "Other", + category: "other", + iconURL: "/img/icon-sector-other.svg", + }, + ]; }, [epochActive]); const getCategoryListFunc = async (category: string) => {