feat: show day timestamp instead of hour if not today

This commit is contained in:
canove
2020-08-06 19:08:33 -03:00
parent 5929c1bc3f
commit c56a9cf0c2
4 changed files with 13 additions and 26 deletions

View File

@@ -102,10 +102,9 @@ const useStyles = makeStyles(theme => ({
},
}));
const MessageInput = ({ searchParam }) => {
const MessageInput = () => {
const classes = useStyles();
const { ticketId } = useParams();
// const userId = localStorage.getItem("userId");
const username = localStorage.getItem("username");
const mediaInitialState = { preview: "", raw: "", name: "" };
@@ -309,7 +308,7 @@ const MessageInput = ({ searchParam }) => {
</label>
<div className={classes.messageInputWrapper}>
<InputBase
inputRef={input => input && !searchParam && input.focus()}
inputRef={input => input && input.focus()}
className={classes.messageInput}
placeholder="Escreva uma mensagem"
multiline