-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed gradient text, styles moved to sx prop
- Loading branch information
Showing
3 changed files
with
11 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
) | ||
} |