Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/ninja-fo.../src/componen...
File: triggerBulkExportComponent.js
import { Component } from '@wordpress/element';
[0] Fix | Delete
import PropTypes from 'prop-types';
[1] Fix | Delete
import { __ } from '@wordpress/i18n';
[2] Fix | Delete
import { Button } from '@wordpress/components';
[3] Fix | Delete
import { DisplayBulkExport } from './';
[4] Fix | Delete
[5] Fix | Delete
export class TriggerBulkExportComponent extends Component {
[6] Fix | Delete
constructor( props ) {
[7] Fix | Delete
super( props );
[8] Fix | Delete
this.state = { compOpen: false };
[9] Fix | Delete
this.setOpen = this.setOpen.bind( this );
[10] Fix | Delete
this.setClose = this.setClose.bind( this );
[11] Fix | Delete
}
[12] Fix | Delete
[13] Fix | Delete
setOpen() {
[14] Fix | Delete
this.setState( { compOpen: true } );
[15] Fix | Delete
}
[16] Fix | Delete
setClose() {
[17] Fix | Delete
this.setState( { compOpen: false } );
[18] Fix | Delete
}
[19] Fix | Delete
[20] Fix | Delete
render() {
[21] Fix | Delete
const { state, props, setClose } = this;
[22] Fix | Delete
const { compOpen } = state;
[23] Fix | Delete
[24] Fix | Delete
const data = {
[25] Fix | Delete
fetchController: new AbortController(),
[26] Fix | Delete
props,
[27] Fix | Delete
setClose,
[28] Fix | Delete
};
[29] Fix | Delete
[30] Fix | Delete
return (
[31] Fix | Delete
<>
[32] Fix | Delete
<Button
[33] Fix | Delete
style={ { height: '30px', borderRadius: '3px' } }
[34] Fix | Delete
isSecondary
[35] Fix | Delete
onClick={ this.setOpen }
[36] Fix | Delete
>
[37] Fix | Delete
{ __( 'Bulk Form Exports', 'ninja-forms' ) }
[38] Fix | Delete
</Button>
[39] Fix | Delete
{ compOpen && <DisplayBulkExport data={ data } /> }
[40] Fix | Delete
</>
[41] Fix | Delete
);
[42] Fix | Delete
}
[43] Fix | Delete
}
[44] Fix | Delete
[45] Fix | Delete
TriggerBulkExportComponent.propTypes = {
[46] Fix | Delete
globalParams: PropTypes.object.isRequired,
[47] Fix | Delete
bulkExportParams: PropTypes.object.isRequired
[48] Fix | Delete
}
[49] Fix | Delete
[50] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function