Skip to content

Commit

Permalink
Disable the referrals button, and the redemption feature (#2548)
Browse files Browse the repository at this point in the history
* Disable the referrals button, and the redemption feature

* Remove unused Referral import

---------

Co-authored-by: user <[email protected]>
  • Loading branch information
af-afk and user authored Feb 19, 2024
1 parent 694393c commit 1ac1705
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 35 deletions.
18 changes: 0 additions & 18 deletions web/app.fluidity.money/app/routes/$network/dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ import {
Modal,
ProvideLiquidity,
BurgerMenu,
Referral,
CardModal,
ArrowUp,
ArrowDown,
Expand Down Expand Up @@ -674,23 +673,6 @@ export default function Dashboard() {
{isMobile ? "" : "Receive"}
</GeneralButton>

{/* Referrals Button (desktop only) */}
{isTablet || isMobile || (
<GeneralButton
type="transparent"
size="small"
layout="before"
handleClick={() => {
width < airdropMobileBreakpoint
? navigate(`/${network}/dashboard/airdrop#referrals`)
: setReferralModalVisibility(true);
}}
icon={<Referral />}
>
{isMobile ? "" : "Referral"}
</GeneralButton>
)}

{/* Fluidify button (desktop only) */}
{isTablet || isMobile || (
<GeneralButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ const Airdrop = () => {
defaultTokens.map((tok) => ({ ...tok, userTokenBalance: new BN(0) }))
);

const [leaderboardFilterIndex, setLeaderboardFilterIndex] = useState(0);
const [leaderboardFilterIndex, setLeaderboardFilterIndex] = useState(1);

const {
address,
Expand Down Expand Up @@ -568,14 +568,6 @@ const Airdrop = () => {
>
Referrals
</TabButton>
<TabButton
size="small"
onClick={() => setCurrentModal("testnet-rewards")}
groupId="airdrop"
isSelected={isMobile && currentModal === "testnet-rewards"}
>
Testnet Rewards
</TabButton>
<TabButton size="small" groupId="airdrop">
<a
href="https://dune.com/neogeo/fluidity-airdrop-v2"
Expand Down Expand Up @@ -1510,14 +1502,6 @@ const Leaderboard = ({
</Text>
</div>
<div className="leaderboard-header-filters">
<GeneralButton
type={filterIndex === 0 ? "primary" : "transparent"}
handleClick={() => setFilterIndex(0)}
>
<Text code size="sm" style={{ color: "inherit" }}>
24 HOURS
</Text>
</GeneralButton>
<GeneralButton
type={filterIndex === 1 ? "primary" : "transparent"}
handleClick={() => setFilterIndex(1)}
Expand Down

0 comments on commit 1ac1705

Please sign in to comment.