- {!(swapComplete || errorKey) && (
+ {/* {!(swapComplete || errorKey) && (
- )}
+ )} */}
{statusImage}
{headerText}
{descriptionText}
diff --git a/ui/pages/swaps/loading-swaps-quotes/loading-swaps-quotes.js b/ui/pages/swaps/loading-swaps-quotes/loading-swaps-quotes.js
index 32394b934b..4288ae4bae 100644
--- a/ui/pages/swaps/loading-swaps-quotes/loading-swaps-quotes.js
+++ b/ui/pages/swaps/loading-swaps-quotes/loading-swaps-quotes.js
@@ -1,5 +1,5 @@
-import EventEmitter from 'events';
-import React, { useState, useEffect, useRef, useContext } from 'react';
+// import EventEmitter from 'events';
+import React, { useState, useEffect, /* useRef, */ useContext } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import PropTypes from 'prop-types';
import { shuffle } from 'lodash';
@@ -18,7 +18,7 @@ import {
} from '../../../selectors/selectors';
import { I18nContext } from '../../../contexts/i18n';
import { MetaMetricsContext } from '../../../contexts/metametrics.new';
-import Mascot from '../../../components/ui/mascot';
+// import Mascot from '../../../components/ui/mascot';
import SwapsFooter from '../swaps-footer';
import BackgroundAnimation from './background-animation';
@@ -31,7 +31,7 @@ export default function LoadingSwapsQuotes({
const metaMetricsEvent = useContext(MetaMetricsContext);
const dispatch = useDispatch();
const history = useHistory();
- const animationEventEmitter = useRef(new EventEmitter());
+ // const animationEventEmitter = useRef(new EventEmitter());
const fetchParams = useSelector(getFetchParams, isEqual);
const quotesFetchStartTime = useSelector(getQuotesFetchStartTime);
@@ -63,11 +63,11 @@ export default function LoadingSwapsQuotes({
shuffle(Object.keys(aggregatorMetadata)),
);
const numberOfQuotes = aggregatorNames.length;
- const mascotContainer = useRef();
- const currentMascotContainer = mascotContainer.current;
+ // const mascotContainer = useRef();
+ // const currentMascotContainer = mascotContainer.current;
const [quoteCount, updateQuoteCount] = useState(0);
- const [midPointTarget, setMidpointTarget] = useState(null);
+ // const [midPointTarget, setMidpointTarget] = useState(null);
useEffect(() => {
let timeoutLength;
@@ -97,6 +97,7 @@ export default function LoadingSwapsQuotes({
};
}, [quoteCount, loadingComplete, onDone, numberOfQuotes]);
+ /*
useEffect(() => {
if (currentMascotContainer) {
const {
@@ -106,9 +107,10 @@ export default function LoadingSwapsQuotes({
height,
} = currentMascotContainer.getBoundingClientRect();
const center = { x: left + width / 2, y: top + height / 2 };
- setMidpointTarget(center);
+ // setMidpointTarget(center);
}
}, [currentMascotContainer]);
+ */
return (
@@ -136,7 +138,7 @@ export default function LoadingSwapsQuotes({
>
-
@@ -147,7 +149,7 @@ export default function LoadingSwapsQuotes({
followMouse={false}
lookAtTarget={midPointTarget}
/>
-
+
*/}