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/shared/Form
File: FormSelector.tsx
import React from 'react';
[0] Fix | Delete
import HubspotWrapper from '../Common/HubspotWrapper';
[1] Fix | Delete
import { pluginPath } from '../../constants/leadinConfig';
[2] Fix | Delete
import AsyncSelect from '../Common/AsyncSelect';
[3] Fix | Delete
import { __ } from '@wordpress/i18n';
[4] Fix | Delete
[5] Fix | Delete
interface IFormSelectorProps {
[6] Fix | Delete
loadOptions: Function;
[7] Fix | Delete
onChange: Function;
[8] Fix | Delete
value: any;
[9] Fix | Delete
}
[10] Fix | Delete
[11] Fix | Delete
export default function FormSelector({
[12] Fix | Delete
loadOptions,
[13] Fix | Delete
onChange,
[14] Fix | Delete
value,
[15] Fix | Delete
}: IFormSelectorProps) {
[16] Fix | Delete
return (
[17] Fix | Delete
<HubspotWrapper pluginPath={pluginPath}>
[18] Fix | Delete
<p data-test-id="leadin-form-select">
[19] Fix | Delete
<b>
[20] Fix | Delete
{__(
[21] Fix | Delete
'Select an existing form or create a new one from a template',
[22] Fix | Delete
'leadin'
[23] Fix | Delete
)}
[24] Fix | Delete
</b>
[25] Fix | Delete
</p>
[26] Fix | Delete
<AsyncSelect
[27] Fix | Delete
placeholder={__('Search for a form', 'leadin')}
[28] Fix | Delete
value={value}
[29] Fix | Delete
loadOptions={loadOptions}
[30] Fix | Delete
onChange={onChange}
[31] Fix | Delete
/>
[32] Fix | Delete
</HubspotWrapper>
[33] Fix | Delete
);
[34] Fix | Delete
}
[35] Fix | Delete
[36] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function