You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello , I need two different sets of field while clicking on two differrent buttons, onClick={() => fields.push({})}, how do i send parameters for each field so that i can use if else in my return li, any luck on this
Hello , I need two different sets of field while clicking on two differrent buttons, onClick={() => fields.push({})}, how do i send parameters for each field so that i can use if else in my return li, any luck on this
renderProductField = ({ fields, meta: { error, submitFailed } }) => (
<li className="text-center" style={{ paddingTop: 0 }}>
<button
className="text-primaryLight cursor-pointer button mx-2"
onClick={() => fields.push({})}
// onClick={(e) => this.buttonClickSection(e,fields, 'product')}
>
Add Product Section
<button
className="text-primaryLight cursor-pointer button mx-2"
// onClick={() => fields.push({section:'banner'})}
onClick={() => fields.push({})}
// onClick={(e) => this.buttonClickSection(e,fields, 'banner')}
>
Add Banner Section
{submitFailed && error && {error}}
);
The text was updated successfully, but these errors were encountered: