MCPcopy Create free account
hub / github.com/Packstack-Tech/packstack / userOptions

Function userOptions

frontend/src/app/components/PackList/PackItem.tsx:39–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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>

Callers 1

PackItemFunction · 0.85

Calls 1

getPackPathFunction · 0.90

Tested by

no test coverage detected