Skip to content

Commit

Permalink
connections for 23rd and 24th bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanaullahbugti committed Aug 18, 2024
1 parent 462c552 commit 184d06b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/TimeLine/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ const keys_1 = [uuidv4(), uuidv4(), uuidv4(), uuidv4(),uuidv4()];
const keys_2 = [uuidv4(), uuidv4(), uuidv4(), uuidv4(),uuidv4()];

export const GetDepartureText = (connection, t) => {
const isMobile = useMediaQuery('(max-width:600px)');
let isMobile = window.innerWidth <= 600;

window.addEventListener('resize', () => {
isMobile = window.innerWidth <= 600;
});
if (!!!connection) {
return <Fragment></Fragment>;
}
Expand All @@ -43,7 +46,7 @@ export const GetDepartureText = (connection, t) => {
// moment(connection.connection_departure_datetime_entry).format("DD.MM HH:mm") :
moment(connection.connection_departure_datetime).format("DD.MM HH:mm") :
`${depTime} - ${moment(connection.connection_arrival_datetime).format("HH:mm")}`;

return (
<Typography sx={{ color: "#000000", fontWeight: 500, paddingTop: "3px", width: "300px",

Expand Down

0 comments on commit 184d06b

Please sign in to comment.