src/utils/wallet.js
/**
 * Quickly switch on and off animation on a field component
 */
Quickly switch on and off animation on a field component
Quickly switch on and off animation on a field component
function flashField(target, field, duration = 1000) {
    target.setState({
        [field]: true
    });
    setTimeout(() => {
        target.setState({
            [field]: false
        });
    }, duration);
}
function flashField ( target , field , duration = 1000 ) { target . setState ( { [ field ] : true } ) ; setTimeout ( ( ) => { target . setState ( { [ field ] : false } ) ; } , duration ) ; }
Quickly switch on and off animation on a field component
Quickly switch on and off animation on a field component