Skip to content

Commit

Permalink
Fixed gradient text, styles moved to sx prop
Browse files Browse the repository at this point in the history
  • Loading branch information
kolebjak committed Jul 13, 2023
1 parent c995ac3 commit 8017b01
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 21 deletions.
13 changes: 4 additions & 9 deletions src/components/FundWallet/FundWalletButton.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
import { Button, ButtonProps } from "../Button/Button"
import styled from "@emotion/styled"
import { ButtonProps } from "../Button/Button"
import { useTranslation } from "react-i18next"
import { Button } from "../Button/Button"

const SButton = styled(Button)`
font-size: 12px;
line-height: 12px;
padding: 11px 15px 11px 15px;
`

type Props = Pick<ButtonProps, "onClick">

export const FundWalletButton = (props: Props) => {
const { t } = useTranslation()

return (
<SButton {...props} variant="primary">
<Button {...props} variant="primary" sx={{ fontSize: 12, lineHeight: 12, p: '11px 15px' }}>
{t("fund.button")}
</SButton>
</Button>
)
}
8 changes: 5 additions & 3 deletions src/components/FundWallet/FundWalletModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ export const FundWalletModal = ({ open, onClose }: Props) => {
onClose={onClose}
withoutCloseOutside={true}
>
<GradientText fs={20} fw={600}>
{t("fund.modal.title")}
</GradientText>
<div>
<GradientText fs={20} fw={600}>
{t("fund.modal.title")}
</GradientText>
</div>
<Text
fw={400}
lh={24}
Expand Down
11 changes: 2 additions & 9 deletions src/components/FundWallet/components/CryptoBlockTitle.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
import { Heading } from "components/Typography/Heading/Heading"
import { ReactComponent as FundCryptoIcon } from "assets/icons/FundCryptoIcon.svg"
import styled from "@emotion/styled"
import { useTranslation } from "react-i18next"

const SWrapper = styled.div`
display: flex;
align-items: center;
column-gap: 9px;
`

export const CryptoBlockTitle = () => {
const { t } = useTranslation()

return (
<SWrapper>
<div sx={{ display: 'flex', align: 'center', gap: 9 }}>
<FundCryptoIcon />
<Heading as="h2" fw={600} fs={20}>
{t("fund.modal.crypto.title")}
</Heading>
</SWrapper>
</div>
)
}

0 comments on commit 8017b01

Please sign in to comment.