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

Lions - Ivy S #120

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

Lions - Ivy S #120

wants to merge 6 commits into from

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.

return (
<div id="App">
<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