Skip to content
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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Contact-List #84

wants to merge 9 commits into from

Conversation

kelseyb55
Copy link

No description provided.

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}/>} />
Copy link

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

<div className='container'>
<div className="card">
<img
src={contact.imageUrl}
Copy link

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


<td>
<img
src={contact.imageUrl}
Copy link

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>
Copy link

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');
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants