1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00

Update slippage-buttons.js (#18745)

Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
This commit is contained in:
Harsh Shukla 2023-04-25 18:58:03 +05:30 committed by GitHub
parent 935831658f
commit 19d6962957
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,15 +7,15 @@ import Button from '../../../components/ui/button';
import InfoTooltip from '../../../components/ui/info-tooltip';
import ToggleButton from '../../../components/ui/toggle-button';
import Box from '../../../components/ui/box';
import Typography from '../../../components/ui/typography';
import {
TypographyVariant,
FONT_WEIGHT,
TextVariant,
FontWeight,
AlignItems,
DISPLAY,
} from '../../../helpers/constants/design-system';
import { getTranslatedStxErrorMessage } from '../swaps.util';
import { Slippage } from '../../../../shared/constants/swaps';
import { Text } from '../../../components/component-library';
export default function SlippageButtons({
onSelect,
@ -207,13 +207,14 @@ export default function SlippageButtons({
alignItems={AlignItems.center}
paddingRight={3}
>
<Typography
variant={TypographyVariant.H6}
<Text
variant={TextVariant.bodySm}
as="h6"
boxProps={{ paddingRight: 2 }}
fontWeight={FONT_WEIGHT.BOLD}
fontWeight={FontWeight.Bold}
>
{t('smartTransaction')}
</Typography>
</Text>
{currentSmartTransactionsError ? (
<InfoTooltip
position="top"