Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-06-16 20:22:42 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
92a2549712f4b2f983e2a03e682a60150a5db5ea
92a25497
1 parent
fb9db05a
remove time
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
19 deletions
front/src/Components/Message.js
front/src/Components/Message.js
View file @
92a2549
import
React
from
"react"
;
import
styled
from
"styled-components"
;
import
ProfileIcon
from
"./ProfileIcon"
;
import
moment
from
"moment"
;
const
MessageWrapper
=
styled
.
div
`
display: flex;
...
...
@@ -35,21 +34,7 @@ const Msg = styled.span`
padding: 20px 10px;
`
;
const
TimeBox
=
styled
.
div
`
display: flex;
justify-content: flex-end;
align-items: center;
opacity: 0.8;
`
;
const
Time
=
styled
.
span
`
font-size: 15px;
`
;
export
default
({
text
,
avatar
,
time
})
=>
{
const
test
=
moment
.
utc
().
valueOf
();
console
.
log
(
typeof
test
);
console
.
log
(
typeof
time
);
export
default
({
text
,
avatar
})
=>
{
return
(
<
MessageWrapper
className
=
"MessageWrapper"
>
<
MsgContainer
>
...
...
@@ -58,9 +43,6 @@ export default ({ text, avatar, time }) => {
<
MsgBox
>
<
Msg
>
{
text
}
<
/Msg
>
<
/MsgBox
>
<
TimeBox
>
<
Time
>
{
time
}
<
/Time
>
<
/TimeBox
>
<
/ColumnBox
>
<
/MsgContainer
>
<
/MessageWrapper
>
...
...
Please
register
or
login
to post a comment