update 一层温度

This commit is contained in:
lb
2023-12-01 11:34:54 +08:00
parent 550da629c0
commit b601e9065a
9 changed files with 540 additions and 62 deletions

View File

@@ -0,0 +1,26 @@
import BlueRect from "../BlueRect";
import { useSelector } from "react-redux";
function TemperatureTop(props) {
const tempTop = useSelector((state) => state.temperature.top);
return (
<div
className="temperature-top"
style={{
position: "absolute",
top: "0",
left: "0",
width: "100%",
height: "95vh",
background: "#ccc3",
}}
>
{Object.keys(tempTop).map((d) => (
<BlueRect title={d} value={tempTop[d]} />
))}
</div>
);
}
export default TemperatureTop;