-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Part of #17670: Replace Typography with Text component #17766
Changes from 2 commits
a0cb2e1
bcd970a
d451bb0
d46fbfa
55659c6
54405b8
12a208d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -2,16 +2,16 @@ import React from 'react'; | |||||||
import { useI18nContext } from '../../../hooks/useI18nContext'; | ||||||||
|
||||||||
import Box from '../../ui/box/box'; | ||||||||
import Typography from '../../ui/typography/typography'; | ||||||||
import { | ||||||||
TypographyVariant, | ||||||||
Color, | ||||||||
BLOCK_SIZES, | ||||||||
DISPLAY, | ||||||||
TextVariant, | ||||||||
} from '../../../helpers/constants/design-system'; | ||||||||
import { BETA_BUGS_URL } from '../../../helpers/constants/beta'; | ||||||||
|
||||||||
import { hideBetaHeader } from '../../../store/actions'; | ||||||||
import { Text } from 'ui/components/component-library'; | ||||||||
|
||||||||
const BetaHeader = () => { | ||||||||
const t = useI18nContext(); | ||||||||
|
@@ -24,8 +24,8 @@ const BetaHeader = () => { | |||||||
padding={2} | ||||||||
className="beta-header" | ||||||||
> | ||||||||
<Typography | ||||||||
variant={TypographyVariant.H7} | ||||||||
<Text | ||||||||
variant={TextVariant.bodySm} | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
marginTop={0} | ||||||||
marginBottom={0} | ||||||||
className="beta-header__message" | ||||||||
|
@@ -41,7 +41,7 @@ const BetaHeader = () => { | |||||||
{t('here')} | ||||||||
</a>, | ||||||||
])} | ||||||||
</Typography> | ||||||||
</Text> | ||||||||
<button | ||||||||
className="beta-header__button" | ||||||||
data-testid="beta-header-close" | ||||||||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
|
@@ -6,7 +6,7 @@ import { | |||||||
AlignItems, | ||||||||
DISPLAY, | ||||||||
FLEX_DIRECTION, | ||||||||
TypographyVariant, | ||||||||
TextVariant, | ||||||||
} from '../../../helpers/constants/design-system'; | ||||||||
import { getAppIsLoading } from '../../../selectors'; | ||||||||
import { gasEstimateGreaterThanGasUsedPlusTenPercent } from '../../../helpers/utils/gas'; | ||||||||
|
@@ -19,8 +19,8 @@ import Box from '../../ui/box'; | |||||||
import Button from '../../ui/button'; | ||||||||
import InfoTooltip from '../../ui/info-tooltip'; | ||||||||
import Popover from '../../ui/popover'; | ||||||||
import Typography from '../../ui/typography'; | ||||||||
import AppLoadingSpinner from '../app-loading-spinner'; | ||||||||
import { Text } from 'ui/components/component-library'; | ||||||||
|
||||||||
const CancelSpeedupPopover = () => { | ||||||||
const { | ||||||||
|
@@ -97,9 +97,9 @@ const CancelSpeedupPopover = () => { | |||||||
> | ||||||||
<AppLoadingSpinner className="cancel-speedup-popover__spinner" /> | ||||||||
<div className="cancel-speedup-popover__wrapper"> | ||||||||
<Typography | ||||||||
<Text | ||||||||
boxProps={{ alignItems: AlignItems.center, display: DISPLAY.FLEX }} | ||||||||
variant={TypographyVariant.H6} | ||||||||
variant={TextVariant.bodySm} | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
marginTop={0} | ||||||||
marginBottom={2} | ||||||||
> | ||||||||
|
@@ -127,7 +127,7 @@ const CancelSpeedupPopover = () => { | |||||||
</Box> | ||||||||
} | ||||||||
/> | ||||||||
</Typography> | ||||||||
</Text> | ||||||||
<div className="cancel-speedup-popover__separator" /> | ||||||||
<Box | ||||||||
display={DISPLAY.FLEX} | ||||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -7,11 +7,11 @@ import ActionableMessage from '../../../ui/actionable-message/actionable-message | |||||
import { PageContainerFooter } from '../../../ui/page-container'; | ||||||
import ErrorMessage from '../../../ui/error-message'; | ||||||
import { INSUFFICIENT_FUNDS_ERROR_KEY } from '../../../../helpers/constants/error-keys'; | ||||||
import Typography from '../../../ui/typography'; | ||||||
import { TypographyVariant } from '../../../../helpers/constants/design-system'; | ||||||
import { TextVariant} from '../../../../helpers/constants/design-system'; | ||||||
import DepositPopover from '../../deposit-popover/deposit-popover'; | ||||||
|
||||||
import { ConfirmPageContainerSummary, ConfirmPageContainerWarning } from '.'; | ||||||
import { Text } from 'ui/components/component-library'; | ||||||
|
||||||
export default class ConfirmPageContainerContent extends Component { | ||||||
static contextTypes = { | ||||||
|
@@ -217,7 +217,7 @@ export default class ConfirmPageContainerContent extends Component { | |||||
className="actionable-message--warning" | ||||||
message={ | ||||||
isBuyableChain ? ( | ||||||
<Typography variant={TypographyVariant.H7} align="left"> | ||||||
<Text variant={TextVariant.bodySm} align="left"> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
{t('insufficientCurrencyBuyOrDeposit', [ | ||||||
nativeCurrency, | ||||||
networkName, | ||||||
|
@@ -232,14 +232,14 @@ export default class ConfirmPageContainerContent extends Component { | |||||
{t('buyAsset', [nativeCurrency])} | ||||||
</Button>, | ||||||
])} | ||||||
</Typography> | ||||||
</Text> | ||||||
) : ( | ||||||
<Typography variant={TypographyVariant.H7} align="left"> | ||||||
<Text variant={TextVariant.bodySm} align="left"> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
{t('insufficientCurrencyDeposit', [ | ||||||
nativeCurrency, | ||||||
networkName, | ||||||
])} | ||||||
</Typography> | ||||||
</Text> | ||||||
) | ||||||
} | ||||||
useIcon | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah oversight on my part we need to add html tags here so that some e2e tests pass. I've updated the description of the issue if you'd like to look.