Question: Answer this what to add in the following code so that unpublish button become active when item is active and grey out or inactive when

Answer this

Answer this what to add in the following code so
what to add in the following code so that unpublish button become active when item is active and grey out or inactive when item is freeze on database and what function to add for request unfreeze: | function obtainActiveItems (artIsus : React Dispatch >) { . then (function (response) { const status = response data.statusfed if (status == 209) { const activeitemliss: Array = for (const item of response.data.issue) activeitemlist.push(new Item(itemizeull, item isemblems, itso itemlessriesier, issu initialPrice, item issoloage, Aten sustienkeneth sten.currentfries, isemestersRoss, issueandlate)) set Items (activeitemlist catch (function (error) { console. log(error) Function Active Items () { / if " "not yet set" then simply show "Loading.. if (items legsth == @) return
loading...
; // Generates Inactive item table eturn (/th> (th className="px-2 py-2 border border-gray-200 text-gray-950 text-left text-am font-normal"> Item Name (/sb> :th className="px-2 py-2 border border-gray-200 text-gray-956 text-left text-am font-normal"> Item Description (/sb> th classNames"px-2 py-2 border border-gray-260 text-gray-950 text- left text-am font-normal"> Iipital Price th className="px-2 py-2 border border-gray-209 text-gray-950 text-left text-am font-normal"> Current Price 3b> :th glassNames"px-2 py-2 border border-gray-260 text-gray-950 text-left text-am font-normal"> Start Date th className="px-2 py-2 border border-gray-200 text-gray-950 text-left text-am font-normal"> End Date (/theads fixeos.map(item => ( fed className="px-2 py-2 border border-gray-200 be-white text-so"> (/td> ed className="px-2 py-2 border border-gray-200 be-white text-go"> '> ed classNine="px-2 py-2 border border-gray-260 be-white text-su"> /td> (ed className="px-2 py-2 border border-gray-200 be-white text-ju"> {'s' + item initialeries} fed className="px-2 py-2 border border-gray-200 be-white text-ag"> :/+d> (/td'> ed className="px-2 py-2 border border-gray-200 be-white text-ju"> (issu endRate) +d'> td> JK/sbody>
>

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!