implement list of contacts and CRUD contacts API route
Change-Id: I749d25c8b1ef6205e5d888bb517c43233bc9215b
diff --git a/client/src/components/ListItemLink.js b/client/src/components/ListItemLink.js
index 915a24b..a0ebc3b 100644
--- a/client/src/components/ListItemLink.js
+++ b/client/src/components/ListItemLink.js
@@ -6,10 +6,12 @@
import { Link as RouterLink } from 'react-router-dom';
function ListItemLink(props) {
- const { icon, primary, secondary, to } = props
+ const { icon, primary, secondary, to, account } = props
const renderLink = useMemo(
- () => forwardRef((itemProps, ref) => <RouterLink to={to} ref={ref} {...itemProps} />),
+ () => forwardRef((itemProps, ref) => {
+ console.log("LIST ITEM LINK: ", account, itemProps)
+ return <RouterLink to={to} ref={ref} {...itemProps} state={account}/>}),
[to])
return (
@@ -25,6 +27,7 @@
primary: PropTypes.string.isRequired,
secondary: PropTypes.string,
to: PropTypes.string.isRequired,
+ account: PropTypes.object
}
export default ListItemLink
\ No newline at end of file