mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-10 10:07:00 +00:00
* hide buttons during send loading state * fix transaction succeeded not clickable; provide error in action * move BroadcastStatusTransaction into 'libs/transaction' * use more succint Array.prototype.find * rename resetState -> resetTransaction * refactor and component componentDidUpdate logic * rename disabled -> generateDisabled; comment componentDidUpdate * add size to Spinner, use in ConfirmationModal; disable instead of hide buttons in Modal * fix flow not understanding that an object wouldn't be null in this case anyway. silly flow * various refactors; send entire balance working
14 lines
274 B
JavaScript
14 lines
274 B
JavaScript
import React from 'react';
|
|
|
|
type size = 'lg' | '2x' | '3x' | '4x' | '5x';
|
|
|
|
type SpinnerProps = {
|
|
size?: size
|
|
};
|
|
|
|
const Spinner = ({ size = 'fa-' }: SpinnerProps) => {
|
|
return <i className={`fa fa-spinner fa-spin fa-${size ? size : 'fw'}`} />;
|
|
};
|
|
|
|
export default Spinner;
|