mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-21 05:09:18 +00:00
fix: change ticket timestamp display to PTBR format
This commit is contained in:
@@ -248,8 +248,7 @@ const Tickets = () => {
|
|||||||
}, [ticketId, userId, history]);
|
}, [ticketId, userId, history]);
|
||||||
|
|
||||||
const loadMore = () => {
|
const loadMore = () => {
|
||||||
if (loading) return;
|
setPageNumber(prevState => prevState + 1);
|
||||||
setPageNumber(prevPageNumber => prevPageNumber + 1);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const updateTickets = ({ ticket }) => {
|
const updateTickets = ({ ticket }) => {
|
||||||
@@ -362,8 +361,8 @@ const Tickets = () => {
|
|||||||
return (
|
return (
|
||||||
<InfiniteScroll
|
<InfiniteScroll
|
||||||
pageStart={0}
|
pageStart={0}
|
||||||
loadMore={loadMore}
|
loadMore={() => !loading && loadMore()}
|
||||||
hasMore={!(tickets.length === count)}
|
hasMore={count > tickets.length}
|
||||||
useWindow={false}
|
useWindow={false}
|
||||||
initialLoad={false}
|
initialLoad={false}
|
||||||
threshold={100}
|
threshold={100}
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ const TicketsList = ({
|
|||||||
{isSameDay(parseISO(ticket.updatedAt), new Date()) ? (
|
{isSameDay(parseISO(ticket.updatedAt), new Date()) ? (
|
||||||
<>{format(parseISO(ticket.updatedAt), "HH:mm")}</>
|
<>{format(parseISO(ticket.updatedAt), "HH:mm")}</>
|
||||||
) : (
|
) : (
|
||||||
<>{format(parseISO(ticket.updatedAt), "MM/dd/yyyy")}</>
|
<>{format(parseISO(ticket.updatedAt), "dd/MM/yyyy")}</>
|
||||||
)}
|
)}
|
||||||
</Typography>
|
</Typography>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user