diff --git a/.vscode/settings.json b/.vscode/settings.json index bfa0aab..b1b1606 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,8 @@ { "todo-tree.flat": false, "todo-tree.grouped": false, - "todo-tree.expanded": true -} \ No newline at end of file + "todo-tree.expanded": true, + "workbench.colorCustomizations": { + "titleBar.activeBackground": "#e2c34a" + } +} diff --git a/src/components/FareList.js b/src/components/FareList.js index dce5e8a..b6a3caa 100644 --- a/src/components/FareList.js +++ b/src/components/FareList.js @@ -41,38 +41,106 @@ class FareList extends Component { } render() { - const { results } = this.props.fareattr + const { fareattr, farerule } = this.props const { match } = this.props return (

Fare

-
+
- {results && Object.keys(results).map(i => ( - + {fareattr.results && Object.keys(farerule.results).map(i => ( +

Fare ID

-

{results[i].fare_id}

+

{fareattr.results[i].fare_id}

-

Start

-

{results[i].start_date}

+

Origin ID

+

{fareattr.results[i].origin_id}

-

End

-

{results[i].end_date}

+

Destination ID (or contains)

+

+ {fareattr.results[i].destination_id} + {fareattr.results[i].contains_id} +

+
+
+
+
+

Route ID

+

+ {fareattr.results[i].route_id} +

+
+
+
+ ))} +
+ + +
+ + {fareattr.results && Object.keys(fareattr.results).map(i => ( + +
+
+

Fare ID

+

{fareattr.results[i].fare_id}

+
+
+
+
+

Price

+

{fareattr.results[i].price}

+
+
+
+
+

Currency

+

{fareattr.results[i].currency_type}

+
+
+
+
+

Payment Method

+

{fareattr.results[i].payment_method}

+
+
+
+
+

Transfer

+

{fareattr.results[i].transfer}

+
+
+
+
+

Duration

+

{fareattr.results[i].transfer_duration}

+
+
+
+
+

Agency

+

{fareattr.results[i].agency_id}