mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Changes to gas-items-details (#19075)
This commit is contained in:
parent
8a8c8fad10
commit
c9f420234f
@ -1,12 +1,12 @@
|
||||
import React from 'react';
|
||||
import { useSelector } from 'react-redux';
|
||||
|
||||
import { TypographyVariant } from '../../../../helpers/constants/design-system';
|
||||
import { TextVariant } from '../../../../helpers/constants/design-system';
|
||||
import { useI18nContext } from '../../../../hooks/useI18nContext';
|
||||
import { getIsMainnet } from '../../../../selectors';
|
||||
import Box from '../../../ui/box';
|
||||
import InfoTooltip from '../../../ui/info-tooltip/info-tooltip';
|
||||
import Typography from '../../../ui/typography/typography';
|
||||
import { Text } from '../../../component-library';
|
||||
|
||||
const GasDetailsItemTitle = () => {
|
||||
const t = useI18nContext();
|
||||
@ -21,15 +21,15 @@ const GasDetailsItemTitle = () => {
|
||||
<InfoTooltip
|
||||
contentText={
|
||||
<>
|
||||
<Typography variant={TypographyVariant.H7}>
|
||||
<Text variant={TextVariant.bodySm} as="h6">
|
||||
{t('transactionDetailGasTooltipIntro', [
|
||||
isMainnet ? t('networkNameEthereum') : '',
|
||||
])}
|
||||
</Typography>
|
||||
<Typography variant={TypographyVariant.H7}>
|
||||
</Text>
|
||||
<Text variant={TextVariant.bodySm} as="h6">
|
||||
{t('transactionDetailGasTooltipExplanation')}
|
||||
</Typography>
|
||||
<Typography variant={TypographyVariant.H7}>
|
||||
</Text>
|
||||
<Text variant={TextVariant.bodySm} as="h6">
|
||||
<a
|
||||
href="https://community.metamask.io/t/what-is-gas-why-do-transactions-take-so-long/3172"
|
||||
target="_blank"
|
||||
@ -37,7 +37,7 @@ const GasDetailsItemTitle = () => {
|
||||
>
|
||||
{t('transactionDetailGasTooltipConversion')}
|
||||
</a>
|
||||
</Typography>
|
||||
</Text>
|
||||
</>
|
||||
}
|
||||
position="bottom"
|
||||
|
@ -0,0 +1,10 @@
|
||||
import React from 'react';
|
||||
import GasDetailsItemTitle from '.';
|
||||
|
||||
export default {
|
||||
title: 'Components/App/GasDetailsItemTitle',
|
||||
};
|
||||
|
||||
export const DefaultStory = () => <GasDetailsItemTitle />;
|
||||
|
||||
DefaultStory.storyName = 'Default';
|
@ -0,0 +1,10 @@
|
||||
import React from 'react';
|
||||
import GasDetailsItem from '.';
|
||||
|
||||
export default {
|
||||
title: 'Components/App/GasDetailsItem',
|
||||
};
|
||||
|
||||
export const DefaultStory = () => <GasDetailsItem />;
|
||||
|
||||
DefaultStory.storyName = 'Default';
|
Loading…
Reference in New Issue
Block a user