Enrich home page

This commit is contained in:
2024-09-26 23:14:18 +02:00
parent 3f41269c0b
commit cb798dfd14
4 changed files with 30 additions and 15 deletions

View File

@@ -18,7 +18,9 @@ import { BoolText } from "../widgets/BoolText";
import { SolarEnergyRouteContainer } from "../widgets/SolarEnergyRouteContainer";
import { TimeWidget } from "../widgets/TimeWidget";
export function RelaysListRoute(): React.ReactElement {
export function RelaysListRoute(p: {
homeWidget?: boolean;
}): React.ReactElement {
const loadKey = React.useRef(1);
const [list, setList] = React.useState<DeviceRelay[] | undefined>();
@@ -39,6 +41,7 @@ export function RelaysListRoute(): React.ReactElement {
return (
<SolarEnergyRouteContainer
label="Relays list"
homeWidget={p.homeWidget}
actions={
<Tooltip title="Refresh list">
<IconButton onClick={reload}>