| 31 | }; |
| 32 | |
| 33 | const renderFooter = () => ( |
| 34 | <ButtonGroup> |
| 35 | <div> |
| 36 | <Popconfirm title="Are you sure you want to delete this item?" |
| 37 | okText="Delete" |
| 38 | placement="bottom" |
| 39 | onConfirm={handleDelete}> |
| 40 | <Button type="danger"> |
| 41 | Delete |
| 42 | </Button> |
| 43 | </Popconfirm> |
| 44 | </div> |
| 45 | <div> |
| 46 | <Button onClick={onCancel}> |
| 47 | Cancel |
| 48 | </Button> |
| 49 | <Button type="primary" onClick={onOk}> |
| 50 | Save Changes |
| 51 | </Button> |
| 52 | </div> |
| 53 | </ButtonGroup> |
| 54 | ); |
| 55 | |
| 56 | const { product_name, name, weight_unit, weight, product_url } = record; |
| 57 | return ( |