1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +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 GitHub
parent d5033249a2
commit f9378b3aa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,9 @@ export default function EditGasPopover({
const shouldAnimate = useShouldAnimateGasEstimations(); const shouldAnimate = useShouldAnimateGasEstimations();
const showEducationButton = 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 [showEducationContent, setShowEducationContent] = useState(false);
const [warning] = useState(null); const [warning] = useState(null);