1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +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 InfoTooltip from '../../../components/ui/info-tooltip';
import ToggleButton from '../../../components/ui/toggle-button'; import ToggleButton from '../../../components/ui/toggle-button';
import Box from '../../../components/ui/box'; import Box from '../../../components/ui/box';
import Typography from '../../../components/ui/typography';
import { import {
TypographyVariant, TextVariant,
FONT_WEIGHT, FontWeight,
AlignItems, AlignItems,
DISPLAY, DISPLAY,
} from '../../../helpers/constants/design-system'; } from '../../../helpers/constants/design-system';
import { getTranslatedStxErrorMessage } from '../swaps.util'; import { getTranslatedStxErrorMessage } from '../swaps.util';
import { Slippage } from '../../../../shared/constants/swaps'; import { Slippage } from '../../../../shared/constants/swaps';
import { Text } from '../../../components/component-library';
export default function SlippageButtons({ export default function SlippageButtons({
onSelect, onSelect,
@ -207,13 +207,14 @@ export default function SlippageButtons({
alignItems={AlignItems.center} alignItems={AlignItems.center}
paddingRight={3} paddingRight={3}
> >
<Typography <Text
variant={TypographyVariant.H6} variant={TextVariant.bodySm}
as="h6"
boxProps={{ paddingRight: 2 }} boxProps={{ paddingRight: 2 }}
fontWeight={FONT_WEIGHT.BOLD} fontWeight={FontWeight.Bold}
> >
{t('smartTransaction')} {t('smartTransaction')}
</Typography> </Text>
{currentSmartTransactionsError ? ( {currentSmartTransactionsError ? (
<InfoTooltip <InfoTooltip
position="top" position="top"