Styling
This commit is contained in:
@@ -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>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -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)}
|
||||||
|
|||||||
Reference in New Issue
Block a user