Enrich home page
This commit is contained in:
@ -4,11 +4,12 @@ import React, { PropsWithChildren } from "react";
|
||||
export function SolarEnergyRouteContainer(
|
||||
p: {
|
||||
label: string;
|
||||
homeWidget?: boolean;
|
||||
actions?: React.ReactElement;
|
||||
} & PropsWithChildren
|
||||
): React.ReactElement {
|
||||
return (
|
||||
<div style={{ margin: "50px" }}>
|
||||
<div style={{ margin: p.homeWidget ? "0px" : "50px" }}>
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
@ -17,7 +18,7 @@ export function SolarEnergyRouteContainer(
|
||||
marginBottom: "20px",
|
||||
}}
|
||||
>
|
||||
<Typography variant="h4">{p.label}</Typography>
|
||||
<Typography variant={p.homeWidget ? "h6" : "h4"}>{p.label}</Typography>
|
||||
{p.actions ?? <></>}
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user