Skip to content

Commit

Permalink
Merge pull request #384 from merofinance/remove-deposit
Browse files Browse the repository at this point in the history
Remove Deposit Buttons
  • Loading branch information
chase-manning committed Feb 8, 2024
2 parents 0afec06 + 6df8abb commit b7126c7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
1 change: 0 additions & 1 deletion src/pages/landing/HowItWorks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const cardsList: CardType[][] = [
number: "howItWorks.categories.earnAndProtect.cards.deposit.number",
header: "howItWorks.categories.earnAndProtect.cards.deposit.header",
description: "howItWorks.categories.earnAndProtect.cards.deposit.description",
depositButton: true,
},
{
number: "howItWorks.categories.earnAndProtect.cards.register.number",
Expand Down
22 changes: 0 additions & 22 deletions src/pages/pools/PoolsRow.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { useSelector } from "react-redux";
import styled from "styled-components";
import { useTranslation } from "react-i18next";

import chevron from "../../assets/ui/chevron.svg";
import Asset from "../../components/Asset";
import Button from "../../components/Button";
import { GradientText } from "../../styles/GradientText";
import { Pool } from "../../lib";
import {
Expand Down Expand Up @@ -136,27 +134,12 @@ const Chevron = styled.img`
width: 2.4rem;
`;

const ButtonContainer = styled.div`
position: absolute;
top: 50%;
transform: translateY(-50%);
display: ${(props: RowProps) => (props.preview ? "flex" : "none")};
right: 1.7rem;
@media (max-width: 600px) {
display: none;
right: 1.6rem;
}
`;

interface Props {
pool: Pool;
preview?: boolean;
}

const PoolsRow = ({ pool, preview }: Props): JSX.Element => {
const { t } = useTranslation();
const navigate = useNavigateToTop();
const { isDesktop } = useDevice();

Expand Down Expand Up @@ -211,11 +194,6 @@ const PoolsRow = ({ pool, preview }: Props): JSX.Element => {
</ChevronData>
<Data right preview={preview} />
</Row>
<ButtonContainer preview={preview}>
<Button background="var(--row-bg)" click={() => navigate(`/pool/${pool.lpToken.symbol}`)}>
{t("pools.deposit")}
</Button>
</ButtonContainer>
</RowContainer>
);
};
Expand Down

0 comments on commit b7126c7

Please sign in to comment.