Skip to content

Conversation

@gpark439
Copy link

No description provided.

Copy link

@kaidamasaki kaidamasaki left a comment

Choose a reason for hiding this comment

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

Great job!

I left a few small notes but everything else looks good.

Well done!

<h1>
Chat between {chatMessages[0].sender} and {chatMessages[1].sender}
</h1>
<h2> {countLiked()} ❤️s</h2>

Choose a reason for hiding this comment

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

Style: This should be a section or p or something since h1, h2, etc should be reserved for titles of parts of the page and this doesn't actually have content associated with it.

Comment on lines +43 to +46
{/* <ChatEntry
sender={senderData}
body={bodyData}
timeStamp={timeStampData}

Choose a reason for hiding this comment

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

Style: It's industry standard to remove commented out code before submitting a PR.


// determine local or remote sender
const senderType =
props.sender === 'Vladimir' ? 'chat-entry local' : 'chat-entry remote';

Choose a reason for hiding this comment

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

Tip: This is a little brittle since it means we couldn't re-use these components for a chat between other people.

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