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: FormControlController.tsx
import React, { Fragment } from 'react';
[0] Fix | Delete
import { connectionStatus } from '../../constants/leadinConfig';
[1] Fix | Delete
import ConnectPluginBanner from '../Common/ConnectPluginBanner';
[2] Fix | Delete
import ElementorFormSelect from './ElementorFormSelect';
[3] Fix | Delete
import { IFormAttributes } from './registerFormWidget';
[4] Fix | Delete
[5] Fix | Delete
const ConnectionStatus = {
[6] Fix | Delete
Connected: 'Connected',
[7] Fix | Delete
NotConnected: 'NotConnected',
[8] Fix | Delete
};
[9] Fix | Delete
[10] Fix | Delete
export default function FormControlController(
[11] Fix | Delete
attributes: IFormAttributes,
[12] Fix | Delete
setValue: Function
[13] Fix | Delete
) {
[14] Fix | Delete
return () => {
[15] Fix | Delete
const render = () => {
[16] Fix | Delete
if (connectionStatus === ConnectionStatus.Connected) {
[17] Fix | Delete
return (
[18] Fix | Delete
<ElementorFormSelect
[19] Fix | Delete
formId={attributes.formId}
[20] Fix | Delete
setAttributes={setValue}
[21] Fix | Delete
/>
[22] Fix | Delete
);
[23] Fix | Delete
} else {
[24] Fix | Delete
return <ConnectPluginBanner />;
[25] Fix | Delete
}
[26] Fix | Delete
};
[27] Fix | Delete
return <Fragment>{render()}</Fragment>;
[28] Fix | Delete
};
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function