Skip to content

Conversation

ivystrayed
Copy link

No description provided.

Copy link

@alope107 alope107 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job! This project is green.

@@ -1,16 +1,51 @@
import React from 'react';
import './App.css';
// import ChatEntry from './components/ChatEntry';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to remove unneeded comments.

Comment on lines +13 to +18
if (message.id === updatedMessage.id) {
return updatedMessage;
}
else {
return message
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nitpick: the else is not needed here.

<header>
<h1>Application title</h1>
</header>
<h1>Heard it Through The Ivy Vine</h1>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😂

Comment on lines +13 to +19
const updatedMessage = {
sender: props.sender,
id: props.id,
body: props.body,
timeStamp: props.timeStamp,
liked: !props.liked,
};

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using ... to make this more concise

Comment on lines +46 to +47
liked: PropTypes.bool,
onToggleLike : PropTypes.func,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget the isRequired!

};

ChatLog.propTypes = {
entries: PropTypes.array.isRequired,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using arrayOf to make the prop types more explicit.

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