()
| 37 | }; |
| 38 | |
| 39 | const userOptions = () => { |
| 40 | if (pack.user.id !== currentUserId) { |
| 41 | return null; |
| 42 | } |
| 43 | |
| 44 | return ( |
| 45 | <UserOptions> |
| 46 | <Link to={getPackPath(id, title)}>view</Link> |
| 47 | <Link to={`/pack/${id}`}>edit</Link> |
| 48 | <Popconfirm title="Are you sure you want to delete this pack?" |
| 49 | okText="Delete" |
| 50 | placement="bottom" |
| 51 | onConfirm={handleDelete}> |
| 52 | <a href="#" className="remove-link">delete</a> |
| 53 | </Popconfirm> |
| 54 | </UserOptions> |
| 55 | ) |
| 56 | }; |
| 57 | |
| 58 | return ( |
| 59 | <PackWrapper> |
no test coverage detected