Skip to content

Lions - Ivy S#120

Open
ivystrayed wants to merge 6 commits intoAda-C18:mainfrom
ivystrayed:main
Open

Lions - Ivy S#120
ivystrayed wants to merge 6 commits intoAda-C18:mainfrom
ivystrayed:main

Conversation

@ivystrayed
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

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

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

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

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,
};
Copy link
Copy Markdown

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

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

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