Skip to content

Commit

Permalink
Merge pull request #362 from zkLinkProtocol/fix/epoch3-issue
Browse files Browse the repository at this point in the history
fix epoch3 issue
  • Loading branch information
MickWang authored Sep 3, 2024
2 parents de53cc8 + 5892a52 commit fa29c49
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 31 deletions.
3 changes: 0 additions & 3 deletions public/img/icon-sector-1.svg

This file was deleted.

5 changes: 5 additions & 0 deletions public/img/icon-sector-assets.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
3 changes: 3 additions & 0 deletions public/img/icon-sector-perpdex.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion src/components/DashboardS2/Tabs/Protfolio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ export default function Portfolio({
}}
content={
<div>
{epochActive === 0 && (
{epochActive !== epochList.length - 1 && (
<div>
<>
<div className="mb-[16px] text-[14px] font-[700]">
Expand Down
26 changes: 12 additions & 14 deletions src/pages/DashboardS2/index2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
name: "Lending",
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",
},
Expand Down Expand Up @@ -638,9 +638,7 @@ export default function Dashboard() {
return (
<Container>
<div className="side fixed right-[8px] md:right-[32px] top-[120px] z-[9] max-w-[350px] md:max-w-[392px] w-full md:w-[392px]">
<ZKLClaimAd />
<MysteryBoxIII />
{/* <GoogleRecaptcha /> */}
</div>

<div className="mt-[29.6px] mx-auto max-w-[1246px] hidden md:block">
Expand All @@ -658,9 +656,9 @@ export default function Dashboard() {
</div>

<div className="desc whitespace-nowrap">
<div className="mt-[12px]">
The 30 million $ZKL will be distributed over at least Three
Epochs.
<div className="mt-[12px] max-w-[400px] whitespace-normal">
The 30 million $ZKL will be distributed by epoches, based on
milestone achievement.
</div>
<div className="mt-[12px] before">
Epoch One (From May 30th to July 15th)
Expand Down Expand Up @@ -768,7 +766,7 @@ export default function Dashboard() {
onClick={() => setTabs2Active(99)}
>
<img
src={"/img/icon-sector-1.svg"}
src={"/img/icon-sector-portfolio.svg"}
alt=""
className="w-[24px] h-[24px] block"
/>
Expand Down
30 changes: 17 additions & 13 deletions src/pages/Leaderboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit fa29c49

Please sign in to comment.