1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 20:39:08 +01:00

Add fee level education button to swaps edit gas popover (#11785)

This commit is contained in:
Alex Donesky 2021-08-05 17:10:04 -05:00 committed by Dan Miller
parent df6c05eb17
commit f3995b72b0

View File

@ -49,7 +49,9 @@ export default function EditGasPopover({
const shouldAnimate = useShouldAnimateGasEstimations();
const showEducationButton =
mode === EDIT_GAS_MODES.MODIFY_IN_PLACE && networkAndAccountSupport1559;
(mode === EDIT_GAS_MODES.MODIFY_IN_PLACE ||
mode === EDIT_GAS_MODES.SWAPS) &&
networkAndAccountSupport1559;
const [showEducationContent, setShowEducationContent] = useState(false);
const [warning] = useState(null);