: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
import React from 'react';
export default ({ currentStep, smushData }) => {
const getStepClass = (step) => {
const stepClass = 'smush-wizard-bar-step';
return stepClass + ' disabled';
if (step > currentStep) {
(step === currentStep ? ' current' : ' sui-tooltip done')
const getStepNumber = (step) => {
return currentStep > step ? (
<span className="sui-icon-check" aria-hidden="true"></span>
{ number: 1, title: __('Server Type', 'wp-smushit') },
{ number: 2, title: __('Add Rules', 'wp-smushit') },
{ number: 3, title: __('Finish Setup', 'wp-smushit') },
<div className="sui-sidenav">
<span className="smush-wizard-bar-subtitle">
{__('Setup', 'wp-smushit')}
<div className="smush-sidenav-title">
<h4>{__('Local WebP', 'wp-smushit')}</h4>
<span className="sui-tag sui-tag-pro">
{__('Pro', 'wp-smushit')}
<div className="smush-wizard-steps-container">
className="smush-svg-mobile"
stroke={1 !== currentStep ? '#1ABC9C' : '#E6E6E6'}
stroke={3 === currentStep ? '#1ABC9C' : '#E6E6E6'}
<React.Fragment key={step.number}>
className={getStepClass(step.number)}
'This stage is already completed.',
<div className="smush-wizard-bar-step-number">
{getStepNumber(step.number)}
className="smush-svg-desktop"
step.number < currentStep