import { Card, Image, Space } from 'antd'; import { connect } from 'react-redux'; import { Button, Radio } from 'antd'; import { actionCartAdd } from '../action'; import { Link } from 'react-router-dom'; const { Meta } = Card; const backendURL = "http://shop-roles.asmer.fs.a-level.com.ua" ; const GoodCard = ({good:{_id, name, price, images}, onAdd}) => } > {images && images[0] && images[0].url && } {price} грн. {/*
  • {name}

    {images && images[0] && images[0].url && } {price}
  • */} const CGoodCard = connect(null, {onAdd: actionCartAdd})(GoodCard) export default CGoodCard;