Skip to content

Conversation

@ToriShade
Copy link

No description provided.

Copy link

@goeunpark goeunpark left a comment

Choose a reason for hiding this comment

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

Great work, Tori! ✨

Love the additional CSS touches here! 💯 Great job going above and beyond the required features! Your tests pass, your prop and state variables look solid, and your JS looks squeaky clean! This is a well-deserved Green. 🟢

Keep up the great work!

import './App.css';
import chatMessages from './data/messages.json';
import messages from './data/messages.json';
import { useState } from 'react';

Choose a reason for hiding this comment

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

We can combine L1 and L4 into one line because they're both imported from the react library:

import React, { useState } from 'react';

};

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.

We should also add likeCallback as a required prop type.


const ChatEntry = (props) => {

const chatEntryClassType = props.sender === 'Vladimir' ? 'local' : 'remote';

Choose a reason for hiding this comment

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

Wonderful implementation of the ternary here!

entries: PropTypes.array.isRequired,
};

export default ChatLog; No newline at end of file

Choose a reason for hiding this comment

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

Nit: JS wants a new line at the end of the file!

import React from 'react';
import './ChatEntry.css';
import PropTypes from 'prop-types';
import TimeStamp from './TimeStamp';

Choose a reason for hiding this comment

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

Great job using the provided TimeStamp component ✨

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