@@ -11,25 +11,16 @@ import PushPinIcon from '@mui/icons-material/PushPin';
11
11
import PushPinOutlinedIcon from '@mui/icons-material/PushPinOutlined' ;
12
12
import TableCell from '@mui/material/TableCell' ;
13
13
import TableRow from '@mui/material/TableRow' ;
14
-
15
14
// Context Imports
16
15
import { DocumentListContext } from '@contexts' ;
17
-
16
+ // Custom Hook Imports
17
+ import useNotification from '@hooks/useNotification' ;
18
18
// MUI Theme
19
19
import { ThemeProvider } from '@mui/material/styles' ;
20
20
import theme from '../../theme' ;
21
21
22
- // Custom Hook Imports
23
- import useNotification from '../../hooks/useNotification' ;
24
-
25
22
/**
26
- * contactListTableRowProps is an object that stores the props for the
27
- * ContactListTableRow component
28
- *
29
- * @typedef {object } contactListTableRowProps
30
- * @property {object } contact - Object containing contact information
31
- * @property {Function } deleteContact
32
- * - function to delete a chosen contact
23
+ * @typedef {import("../../typedefs.js").userListObject } userListObject
33
24
*/
34
25
35
26
/**
@@ -38,7 +29,10 @@ import useNotification from '../../hooks/useNotification';
38
29
*
39
30
* @memberof Contacts
40
31
* @name ContactListTableRow
41
- * @param {contactListTableRowProps } Props - Props for ContactListTableRow
32
+ * @param {object } Props - Props for ContactListTableRow
33
+ * @param {userListObject } Props.contact - contact object that store's contact
34
+ * information
35
+ * @param {Function } Props.deleteContact - method to delete contact
42
36
* @returns {React.JSX.Element } The ContactListTableRow Component
43
37
*/
44
38
const ContactListTableRow = ( { contact, deleteContact } ) => {
0 commit comments