|
@ -159,8 +159,10 @@ export default function Header() { |
|
|
return ( |
|
|
return ( |
|
|
<> |
|
|
<> |
|
|
{contextHolder} |
|
|
{contextHolder} |
|
|
<div className="bg-[--bgColor] h-full flex items-center"> |
|
|
|
|
|
<section className="ml-auto rounded-md h-9 mr-4 flex items-center bg-white gap-2 pl-4"> |
|
|
|
|
|
|
|
|
<div className="bg-[--bgColor] h-full flex justify-end items-center"> |
|
|
|
|
|
{deviceInfo.isConnected && ( |
|
|
|
|
|
<> |
|
|
|
|
|
<section className=" rounded-md h-9 mr-4 flex items-center bg-white gap-2 pl-4"> |
|
|
<span className="w-[94px]">温度:{deviceInfo.temperature.toFixed(1)}℃ </span> |
|
|
<span className="w-[94px]">温度:{deviceInfo.temperature.toFixed(1)}℃ </span> |
|
|
<span className="w-[120px]">X轴倾斜:{deviceInfo.inclinatorX}</span> |
|
|
<span className="w-[120px]">X轴倾斜:{deviceInfo.inclinatorX}</span> |
|
|
<span className="w-[120px]">Y轴倾斜:{deviceInfo.inclinatorY}</span> |
|
|
<span className="w-[120px]">Y轴倾斜:{deviceInfo.inclinatorY}</span> |
|
@ -173,6 +175,8 @@ export default function Header() { |
|
|
/> |
|
|
/> |
|
|
<p className="text-primary text-xs">{deviceInfo.power.toFixed()}%</p> |
|
|
<p className="text-primary text-xs">{deviceInfo.power.toFixed()}%</p> |
|
|
</section> |
|
|
</section> |
|
|
|
|
|
</> |
|
|
|
|
|
)} |
|
|
{/* <section className="bg-white rounded-md h-9 w-10 flex justify-center items-center mr-3"> |
|
|
{/* <section className="bg-white rounded-md h-9 w-10 flex justify-center items-center mr-3"> |
|
|
<img src={icon_usb} className="w-6" alt="icon" /> |
|
|
<img src={icon_usb} className="w-6" alt="icon" /> |
|
|
</section> */} |
|
|
</section> */} |
|
|