sdy

remove time

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>
......