render{
return(
<div className={styles.expand_container}>
{_mock_.free_fabric.map((card,index) =>
<FreeFabricCard key={card.id}{...card} amountCard={amountCard} handleClick={this.handleOnClick.bind(index)} choose={selectCard.select}/>
)}
</div>
)
}
handleOnClick(ind){
console.log("your index",ind)
}
fire.database().ref("stories").on('value', function(snap) {
console.log("--- snap.val()", snap.val());
return snap.val();
}).then((value)=>{
try {
console.log("--- value", value)
const dog = value.data.message;
yield put({type: "API_CALL_SUCCESS", dog});
} catch (error) {
yield put({type: "API_CALL_FAILURE", error});
}
})