Skip to content

Commit

Permalink
Time value is coming from message-list as time property
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathChaos committed May 14, 2020
1 parent 6257b1a commit 0ef54ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paraboly/pwc-chat",
"version": "0.0.4",
"version": "0.0.5",
"description": "Beautiful chat component for Web via Paraboly with Stencil",
"keywords": [
"freakycoder",
Expand Down
5 changes: 3 additions & 2 deletions src/components/pwc-chat/pwc-chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,14 @@ export class Chat {
return this.messageList.map(item => {
const {
username = "Mia Garcia",
message = "Etiam ultrices ullamcorper mauris, a ultrices urna varius vitae. Nullam non aliquet magna."
message = "Etiam ultrices ullamcorper mauris, a ultrices urna varius vitae. Nullam non aliquet magna.",
time = "3 hours ago"
} = item;
return (
<div class="box">
<h2>{username}</h2>
<p>{message}</p>
<span class="time">3 hours ago</span>
<span class="time">{time}</span>
</div>
);
});
Expand Down

0 comments on commit 0ef54ed

Please sign in to comment.