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

How to add date in it? #2

Open
ankur1163 opened this issue Oct 11, 2017 · 1 comment
Open

How to add date in it? #2

ankur1163 opened this issue Oct 11, 2017 · 1 comment
Assignees
Labels

Comments

@ankur1163
Copy link

I am trying to add date in this component. So, i went inside the package. I am in ChatBubble.js . I am sending data as

{
        "type" : 0,
        "image": "https://i2.wp.com/charlottelifeandhome.com/wp-content/uploads/2015/06/Headshot-round.png",
        "text": "Hello! Good Morning!,how are you ankur",
        "date":"Wed Oct 11 2017 11:32:19 GMT+0530 (IST)"
    }

when i go inside chatbubble.js file and I put this code

<div className={bubble ${bubbleClass}}>{message.text}</div> <p>{message.date}</p>

But, when i refresh my project, I dont see any date. Can you help me out?

@sabinbajracharya
Copy link
Owner

sabinbajracharya commented Oct 11, 2017

I did try and date is showing on my end.
Make sure on your terminal you do npm start once.
This will watch for changes and recompiles the source and then you can refresh the browser to see those changes.
Or, you need to do npm build every time you make a change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants