source: frontend/src/Components/TransportDetails/RouteContainer.js@ efaa053

Last change on this file since efaa053 was e6c2521, checked in by darsov2 <62809499+darsov2@…>, 10 months ago

images upload/download impl, other fixes

  • Property mode set to 100644
File size: 928 bytes
RevLine 
[e6c2521]1import React from "react";
2import { Container, Row, Col } from "react-bootstrap";
3import { RxDot } from "react-icons/rx"
4import Line from "./Line";
5import Waypoint from "./Waypoint";
6import FinalPoint from "./FinalPoint";
7
8const RouteContainer = (props) => {
9 console.log("VO KONTEJNERO")
10 console.log(props.data)
11 return (
12 <>
13 <Container
14 className="py-3 px-4 my-4"
15 style={{
16 border: "4px solid #159895",
17 borderRadius: "1em",
18 boxShadow: "0 3px 5px #159895",
19 maxWidth: "60%",
20 }}
21 >
22 <Waypoint city={props.data.from} time={''}></Waypoint>
23 {props.data.routes && props.data.routes.map((route, i) => {
24 return <Waypoint city={route} time={props.data.times[i]}></Waypoint>
25 })}
26 <FinalPoint city={props.data.to} time={props.data.time}></FinalPoint>
27 </Container>
28 </>
29 );
30};
31
32export default RouteContainer;
Note: See TracBrowser for help on using the repository browser.