quick commit
This commit is contained in:
@@ -29,10 +29,9 @@ function parseTimetableData(data: DepartureType[]) {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function departureTables(departures: DepartureType[], name: string) {
|
function departureTables(departures: DepartureType[]) {
|
||||||
return (
|
return (
|
||||||
<div className={style.departureLists}>
|
<div className={style.departureTable}>
|
||||||
<h2>{name} Departures</h2>
|
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
{departures.map((departure, index) => (
|
{departures.map((departure, index) => (
|
||||||
@@ -59,8 +58,11 @@ export default function DepartureList(props: {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={style.container}>
|
<div className={style.container}>
|
||||||
{departureTables(left, name)}
|
<h2>{name} Departures</h2>
|
||||||
{departureTables(right, name)}
|
<div className={style.departureLists}>
|
||||||
|
{departureTables(left)}
|
||||||
|
{departureTables(right)}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
.container {
|
.container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.departureLists {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|||||||
0
src/store/Weather/Weather.ts
Normal file
0
src/store/Weather/Weather.ts
Normal file
Reference in New Issue
Block a user