A Metamask fork with Infura removed and default networks editable
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ciphermask/ui/components/app/app-loading-spinner/app-loading-spinner.js

31 lines
663 B

import { useSelector } from 'react-redux';
import PropTypes from 'prop-types';
import React from 'react';
import { getAppIsLoading } from '../../../selectors';
import Spinner from '../../ui/spinner';
const AppLoadingSpinner = ({ className }) => {
const appIsLoading = useSelector(getAppIsLoading);
if (!appIsLoading) {
return null;
}
return (
<div
className={`${className} app-loading-spinner`}
role="alert"
aria-busy="true"
>
<Spinner color="#F7C06C" className="app-loading-spinner__inner" />
</div>
);
};
AppLoadingSpinner.propTypes = {
className: PropTypes.string,
};
export default AppLoadingSpinner;