Commit 68681c80 by asranov0003

fix: home sheet status

parent 099f3349
...@@ -56,12 +56,24 @@ const Home: React.FC = () => { ...@@ -56,12 +56,24 @@ const Home: React.FC = () => {
<div className="home__sheet__status"> <div className="home__sheet__status">
<div> <div>
<IoBatteryHalfOutline className="home__sheet__status__icon" /> <IoBatteryHalfOutline className="home__sheet__status__icon" />
<p>{deviceData?.bat_level}%</p> <p>
{deviceData?.bat_level ? (
<>{deviceData?.bat_level}%</>
) : (
<>0%</>
)}
</p>
</div> </div>
<div> <div>
<BsPersonStanding className="home__sheet__status__icon" /> <BsPersonStanding className="home__sheet__status__icon" />
<p> <p>
{deviceData?.location.speed ? (
<>
{deviceData?.location.speed} {t("home.kmh")} {deviceData?.location.speed} {t("home.kmh")}
</>
) : (
<>0 {t("home.kmh")}</>
)}
</p> </p>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment