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

Comment component #55

Open
wants to merge 6 commits into
base: B_master
Choose a base branch
from
Open

Comment component #55

wants to merge 6 commits into from

Conversation

qcianna
Copy link
Collaborator

@qcianna qcianna commented Nov 27, 2021

No description provided.

function Comment({userName, text, creationDate, imgUrl}) {

var day = creationDate.getDate();
var month = creationDate.getMonth();
Copy link

Choose a reason for hiding this comment

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

getMonth zwraca liczbę z zakresu 0-11 - styczen = 0, luty = 1 => z tego powodu trzeba zrobić +1

<p className="user">{userName}</p>
<p className="text">{text}</p>
</div>
<p className="date">{day + "-" + month + "-" + year + " " + h + "h " + m + "min"}</p>
Copy link

Choose a reason for hiding this comment

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

@qcianna qcianna requested a review from mmrrnn November 27, 2021 14:20
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