Skip to content

Contact-List#84

Open
kelseyb55 wants to merge 9 commits intoprojectshft:mainfrom
kelseyb55:main
Open

Contact-List#84
kelseyb55 wants to merge 9 commits intoprojectshft:mainfrom
kelseyb55:main

Conversation

@kelseyb55
Copy link
Copy Markdown

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

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

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

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

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

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