This commit is contained in:
Florian Schroedl
2024-01-23 15:50:53 +01:00
parent fdc9408666
commit d7e07f5e11
2 changed files with 6 additions and 3 deletions

View File

@@ -63,8 +63,11 @@ export const Dashboard = function ({ state, updateCache }) {
}, [dateTime]); }, [dateTime]);
return ( return (
<div> <div className="flex p-5 bg-white border border-solid border-slate-300 rounded-lg space-y-5">
<ForecastDatePicker dateTime={dateTime} onChange={setDateTime} /> <div>
<h1 className="text-lg font-medium mb-2">Forecast</h1>
<ForecastDatePicker dateTime={dateTime} onChange={setDateTime} />
</div>
{data ? <WeatherChart data={data} /> : "Loading..."} {data ? <WeatherChart data={data} /> : "Loading..."}
</div> </div>
); );

View File

@@ -26,7 +26,7 @@ export const ForecastDatePicker = function ({
console.log(dateTime); console.log(dateTime);
return ( return (
<label> <label>
Forecast date (min. of 14 days in advance) Forecast date (min. of 14 days in advance) <br />
<input <input
type="date" type="date"
value={formatDate(dateTime)} value={formatDate(dateTime)}