EIP-1559 - Temporarily remove the loading heartbeat from the transaction detail (#11762)

feature/default_network_editable
David Walsh 3 years ago committed by GitHub
parent a3c7bae345
commit f0daa28fac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      ui/components/app/transaction-detail/transaction-detail.component.js

@ -2,20 +2,14 @@ import React, { useContext } from 'react';
import PropTypes from 'prop-types';
import { I18nContext } from '../../../contexts/i18n';
import { useShouldAnimateGasEstimations } from '../../../hooks/useShouldAnimateGasEstimations';
import TransactionDetailItem from '../transaction-detail-item/transaction-detail-item.component';
import LoadingHeartBeat from '../../ui/loading-heartbeat';
export default function TransactionDetail({ rows = [], onEdit }) {
const t = useContext(I18nContext);
const shouldAnimate = useShouldAnimateGasEstimations();
return (
<div className="transaction-detail">
{process.env.IN_TEST === 'true' ? null : (
<LoadingHeartBeat active={shouldAnimate} />
)}
{onEdit && (
<div className="transaction-detail-edit">
<button onClick={onEdit}>{t('edit')}</button>

Loading…
Cancel
Save