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:
parent
935831658f
commit
19d6962957
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user