diff --git a/ui/components/app/edit-gas-popover/edit-gas-popover.component.js b/ui/components/app/edit-gas-popover/edit-gas-popover.component.js index 4e84ec5bf..7a862e42d 100644 --- a/ui/components/app/edit-gas-popover/edit-gas-popover.component.js +++ b/ui/components/app/edit-gas-popover/edit-gas-popover.component.js @@ -3,6 +3,7 @@ import PropTypes from 'prop-types'; import { useDispatch, useSelector } from 'react-redux'; import { useGasFeeInputs } from '../../../hooks/useGasFeeInputs'; +import { useShouldAnimateGasEstimations } from '../../../hooks/useShouldAnimateGasEstimations'; import { GAS_ESTIMATE_TYPES, @@ -27,6 +28,7 @@ import { hideSidebar, updateTransaction, } from '../../../store/actions'; +import LoadingHeartBeat from '../../ui/loading-heartbeat'; export default function EditGasPopover({ popoverTitle = '', @@ -41,6 +43,8 @@ export default function EditGasPopover({ const dispatch = useDispatch(); const showSidebar = useSelector((state) => state.appState.sidebar.isOpen); + const shouldAnimate = useShouldAnimateGasEstimations(); + const showEducationButton = mode === EDIT_GAS_MODES.MODIFY_IN_PLACE && process.env.SHOW_EIP_1559_UI; const [showEducationContent, setShowEducationContent] = useState(false); @@ -181,45 +185,48 @@ export default function EditGasPopover({ ) } > -