Messwerteingänge Messwerteingänge mit zwei Nachkommastellen
This commit is contained in:
@@ -5,6 +5,7 @@ import { RootState, AppDispatch } from "../../../redux/store";
|
||||
import { fetchAnalogeEingaengeThunk } from "../../../redux/thunks/fetchAnalogeEingaengeThunk";
|
||||
import { Icon } from "@iconify/react";
|
||||
import settingsIcon from "@iconify/icons-mdi/settings";
|
||||
import waveformIcon from "@iconify/icons-mdi/waveform";
|
||||
|
||||
export default function AnalogeEingaengeTable({
|
||||
setSelectedId,
|
||||
@@ -34,10 +35,9 @@ export default function AnalogeEingaengeTable({
|
||||
return (
|
||||
<div className="w-full">
|
||||
<h2 className="text-sm laptop:text-xs font-bold mb-3 flex items-center">
|
||||
<img
|
||||
src="/images/analogeEingaengeIcon.svg"
|
||||
alt="Analoge Eingänge"
|
||||
className="w-6 h-6 mr-2 text-littwin-blue"
|
||||
<Icon
|
||||
icon={waveformIcon}
|
||||
className="text-littwin-blue mr-2 text-xl laptop:text-lg xl:text-xl 2xl:text-2xl border border-littwin-blue"
|
||||
/>
|
||||
Messwerteingänge
|
||||
</h2>
|
||||
@@ -49,8 +49,8 @@ export default function AnalogeEingaengeTable({
|
||||
<tr className="bg-gray-100 text-gray-700">
|
||||
<th className="border p-1 text-left">Eingang</th>
|
||||
<th className="border p-3 text-left">Messwert</th>
|
||||
<th className="border p-3 text-left">Bezeichnung</th>
|
||||
<th className="border p-3 text-left">Einheit</th>
|
||||
<th className="border p-3 text-left">Bezeichnung</th>
|
||||
<th className="border p-3 text-left">Aktion</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -74,15 +74,16 @@ export default function AnalogeEingaengeTable({
|
||||
className="border p-3"
|
||||
onClick={() => handleSelect(e.id!)}
|
||||
>
|
||||
{e.value ?? "-"}
|
||||
{typeof e.value === "number" ? e.value.toFixed(2) : "-"}
|
||||
</td>
|
||||
<td className="border p-3">{e.unit || "-"}</td>
|
||||
<td
|
||||
className="border p-3"
|
||||
onClick={() => handleSelect(e.id!)}
|
||||
>
|
||||
{e.name || "----"}
|
||||
</td>
|
||||
<td className="border p-3">{e.unit || "-"}</td>
|
||||
|
||||
<td className="border p-3 text-center">
|
||||
<button
|
||||
onClick={() => {
|
||||
|
||||
Reference in New Issue
Block a user