Last change
on this file since e9b4ba9 was e9b4ba9, checked in by darsov2 <62809499+darsov2@…>, 8 months ago |
prototype
|
-
Property mode
set to
100644
|
File size:
941 bytes
|
Rev | Line | |
---|
[e9b4ba9] | 1 | import React from "react";
|
---|
| 2 | import { Container, Row, Col } from "react-bootstrap";
|
---|
| 3 | import { RxDot } from "react-icons/rx"
|
---|
| 4 | import Line from "./Line";
|
---|
| 5 | import Waypoint from "./Waypoint";
|
---|
| 6 | import FinalPoint from "./FinalPoint";
|
---|
| 7 |
|
---|
| 8 | const 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={props.data.date}></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 |
|
---|
| 32 | export default RouteContainer;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.