-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contact-List #84
base: main
Are you sure you want to change the base?
Contact-List #84
Conversation
src/App.js
Outdated
<Route exact path="/" element={<ContactList contacts={contacts} />} /> | ||
<Route path="/contacts" element={<ContactList contacts={contacts} />}/> | ||
<Route path="/new" element={<AddNewContact addContact={addContact} setContacts={setContacts}/>}/> | ||
<Route path="contacts/id" element={<Contact contacts={contacts}/>} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The syntax for including the id as part of the path is incorrect
src/components/contact_id.js
Outdated
<div className='container'> | ||
<div className="card"> | ||
<img | ||
src={contact.imageUrl} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The I in imageUrl is uppercase in other places
src/components/contact_list.js
Outdated
|
||
<td> | ||
<img | ||
src={contact.imageUrl} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
another lower case i
</td> | ||
<td>{contact.name}</td> | ||
<td>{contact.email}</td> | ||
<td>{contact.phoneNumber}</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sometimes you use phoneNumber and other times its number
}; | ||
|
||
addContact(newContact); | ||
nav('/contactList'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this route doesn't exist
No description provided.