mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
EIP 1559 - Provide a GWEI label for advanced gas control fields (#11419)
This commit is contained in:
parent
64644ad380
commit
310531eeb6
@ -16,6 +16,7 @@ import InfoTooltip from '../../ui/info-tooltip/info-tooltip';
|
||||
|
||||
export default function AdvancedGasControlsRow({
|
||||
titleText,
|
||||
titleUnit,
|
||||
tooltipText,
|
||||
titleDetailText,
|
||||
error,
|
||||
@ -39,7 +40,14 @@ export default function AdvancedGasControlsRow({
|
||||
>
|
||||
{titleText}
|
||||
</Typography>
|
||||
|
||||
<Typography
|
||||
tag={TYPOGRAPHY.H6}
|
||||
variant={TYPOGRAPHY.H6}
|
||||
color={COLORS.UI4}
|
||||
boxProps={{ display: DISPLAY.INLINE_BLOCK }}
|
||||
>
|
||||
{titleUnit}
|
||||
</Typography>
|
||||
<InfoTooltip position="top" contentText={tooltipText} />
|
||||
</div>
|
||||
{titleDetailText && (
|
||||
@ -70,6 +78,7 @@ export default function AdvancedGasControlsRow({
|
||||
|
||||
AdvancedGasControlsRow.propTypes = {
|
||||
titleText: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
||||
titleUnit: PropTypes.string,
|
||||
tooltipText: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
||||
titleDetailText: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
||||
error: PropTypes.string,
|
||||
@ -79,6 +88,7 @@ AdvancedGasControlsRow.propTypes = {
|
||||
|
||||
AdvancedGasControlsRow.defaultProps = {
|
||||
titleText: '',
|
||||
titleUnit: '',
|
||||
tooltipText: '',
|
||||
titleDetailText: '',
|
||||
error: '',
|
||||
|
@ -32,6 +32,7 @@ export default function AdvancedGasControls() {
|
||||
<>
|
||||
<AdvancedGasControlsRow
|
||||
titleText={t('maxPriorityFee')}
|
||||
titleUnit="(GWEI)"
|
||||
tooltipText=""
|
||||
onChange={setMaxPriorityFee}
|
||||
value={maxPriorityFee}
|
||||
@ -55,6 +56,7 @@ export default function AdvancedGasControls() {
|
||||
/>
|
||||
<AdvancedGasControlsRow
|
||||
titleText={t('maxFee')}
|
||||
titleUnit="(GWEI)"
|
||||
tooltipText=""
|
||||
onChange={setMaxFee}
|
||||
value={maxFee}
|
||||
@ -81,6 +83,7 @@ export default function AdvancedGasControls() {
|
||||
<>
|
||||
<AdvancedGasControlsRow
|
||||
titleText={t('gasPrice')}
|
||||
titleUnit="(GWEI)"
|
||||
onChange={setGasPrice}
|
||||
tooltipText=""
|
||||
titleDetailText=""
|
||||
|
Loading…
Reference in New Issue
Block a user