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

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/wp-conte.../plugins/leadin/scripts/elemento.../FormWidg...
File: FormWidgetController.tsx
import React, { Fragment } from 'react';
[0] Fix | Delete
import { connectionStatus } from '../../constants/leadinConfig';
[1] Fix | Delete
import ErrorHandler from '../../shared/Common/ErrorHandler';
[2] Fix | Delete
import FormEdit from '../../shared/Form/FormEdit';
[3] Fix | Delete
import ConnectionStatus from '../../shared/enums/connectionStatus';
[4] Fix | Delete
import { IFormAttributes } from './registerFormWidget';
[5] Fix | Delete
[6] Fix | Delete
export default function FormWidgetController(
[7] Fix | Delete
attributes: IFormAttributes,
[8] Fix | Delete
setValue: Function
[9] Fix | Delete
) {
[10] Fix | Delete
return () => {
[11] Fix | Delete
const render = () => {
[12] Fix | Delete
if (connectionStatus === ConnectionStatus.Connected) {
[13] Fix | Delete
return (
[14] Fix | Delete
<FormEdit
[15] Fix | Delete
attributes={attributes}
[16] Fix | Delete
isSelected={true}
[17] Fix | Delete
setAttributes={setValue}
[18] Fix | Delete
preview={false}
[19] Fix | Delete
origin="elementor"
[20] Fix | Delete
/>
[21] Fix | Delete
);
[22] Fix | Delete
} else {
[23] Fix | Delete
return <ErrorHandler status={401} />;
[24] Fix | Delete
}
[25] Fix | Delete
};
[26] Fix | Delete
return <Fragment>{render()}</Fragment>;
[27] Fix | Delete
};
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function