Skip to content

Commit

Permalink
Merge pull request #65 from AdaGold/kp/timestamp
Browse files Browse the repository at this point in the history
Add timestamp explanation
  • Loading branch information
kyra-patton authored May 30, 2023
2 parents 74b70b5 + 5765f53 commit 86a4564
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion project-docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,16 @@ Once you've identified which data will be used by which components, consider the

Finally, after analyzing the provided data and designing a set of components and their relationships to the data, you should write down your proposed design.


Consider discussing your design with a classmate. Is their design different from yours? If so, discuss the reasoning for each of yours designs and determine any possible pros/cons for both approaches.

### Hint: The `TimeStamp` Component

The `TimeStamp` component has already been implemented for you. The `ChatEntry` component should use an instance of the `TimeStamp` component.

The `TimeStamp` component expects one `prop`: `time`.

If this component receives `time` through `props` correctly, it will render the time in a nice format!

## Setup

After forking and cloning this repo you must run `yarn install` in the project directory. This will download and install all of the necessary node modules required by the project. After that finishes successfully, run `yarn start` to begin the local development server.
Expand Down
2 changes: 1 addition & 1 deletion project-docs/wave-01.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Update the `ChatEntry` and `App` components to display a single chat message bub

A good way to test this code as you write it would be to take the first chat message from the JSON data file and use it as the data for the `ChatEntry` component.

`ChatEntry` should have props which match the elements from each chat message in the JSON data file: `sender`, `body`, and `timeStamp`. Note: We do not need to include the `id` and `liked` fields for Wave 01.
`ChatEntry` should have props which match the elements from each chat message in the JSON data file: `sender`, `body`, and `timeStamp`. Note: We do not need to include the `id` and `liked` fields for Wave 01. Additionally, don't forget about the [hint](./setup.md#hint-the-timestamp-component) from the setup docs!

## Styling

Expand Down

0 comments on commit 86a4564

Please sign in to comment.