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/clone/wp-conte.../plugins/leadin/scripts/shared/Meeting
File: MeetingSelector.tsx
import React, { Fragment } from 'react';
[0] Fix | Delete
import AsyncSelect from '../Common/AsyncSelect';
[1] Fix | Delete
import UISpacer from '../UIComponents/UISpacer';
[2] Fix | Delete
import { __ } from '@wordpress/i18n';
[3] Fix | Delete
[4] Fix | Delete
interface IMeetingSelectorProps {
[5] Fix | Delete
options: any[];
[6] Fix | Delete
onChange: Function;
[7] Fix | Delete
value: any;
[8] Fix | Delete
}
[9] Fix | Delete
[10] Fix | Delete
export default function MeetingSelector({
[11] Fix | Delete
options,
[12] Fix | Delete
onChange,
[13] Fix | Delete
value,
[14] Fix | Delete
}: IMeetingSelectorProps) {
[15] Fix | Delete
const optionsWrapper = [
[16] Fix | Delete
{
[17] Fix | Delete
label: __('Meeting name', 'leadin'),
[18] Fix | Delete
options,
[19] Fix | Delete
},
[20] Fix | Delete
];
[21] Fix | Delete
[22] Fix | Delete
return (
[23] Fix | Delete
<Fragment>
[24] Fix | Delete
<UISpacer />
[25] Fix | Delete
<p data-test-id="leadin-meeting-select">
[26] Fix | Delete
<b>{__('Select a meeting scheduling page', 'leadin')}</b>
[27] Fix | Delete
</p>
[28] Fix | Delete
<AsyncSelect
[29] Fix | Delete
defaultOptions={optionsWrapper}
[30] Fix | Delete
onChange={onChange}
[31] Fix | Delete
placeholder={__('Select a meeting', 'leadin')}
[32] Fix | Delete
value={value}
[33] Fix | Delete
/>
[34] Fix | Delete
</Fragment>
[35] Fix | Delete
);
[36] Fix | Delete
}
[37] Fix | Delete
[38] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function