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: DisplayNotice.js
import { Notice } from '@wordpress/components';
[0] Fix | Delete
import PropTypes from 'prop-types';
[1] Fix | Delete
[2] Fix | Delete
export const DisplayNotice = ( props ) => {
[3] Fix | Delete
//TODO: Use state management
[4] Fix | Delete
const removeNotice = () => {
[5] Fix | Delete
jQuery( '#nf-trigger-emails-container .components-notice' ).remove();
[6] Fix | Delete
jQuery( '#nf-bulk-export-container .components-notice' ).remove();
[7] Fix | Delete
};
[8] Fix | Delete
[9] Fix | Delete
return (
[10] Fix | Delete
<>
[11] Fix | Delete
<Notice
[12] Fix | Delete
status={ props.status }
[13] Fix | Delete
isDismissible="true"
[14] Fix | Delete
children={ props.text }
[15] Fix | Delete
politeness="polite"
[16] Fix | Delete
onRemove={ removeNotice }
[17] Fix | Delete
/>
[18] Fix | Delete
</>
[19] Fix | Delete
);
[20] Fix | Delete
};
[21] Fix | Delete
[22] Fix | Delete
DisplayNotice.propTypes = {
[23] Fix | Delete
isDismissible: PropTypes.string,
[24] Fix | Delete
status: PropTypes.string,
[25] Fix | Delete
text: PropTypes.string
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function