Swap Icon für Invertierung erstellt
This commit is contained in:
@@ -82,22 +82,29 @@ function EinAusgaenge() {
|
||||
/>
|
||||
{input.id}
|
||||
</td>
|
||||
<td
|
||||
className={`p-2 xl:py-0 ${
|
||||
input.status === "active"
|
||||
? "text-green-500"
|
||||
: "text-red-500"
|
||||
}`}
|
||||
>
|
||||
{input.status === "active" ? "●" : "⨉"}
|
||||
{input.isInverted && (
|
||||
<Icon
|
||||
icon="mdi:swap-vertical"
|
||||
className="text-red-500 ml-2 text-xl cursor-pointer"
|
||||
title="Invertiert"
|
||||
/>
|
||||
)}
|
||||
<td className="p-2 xl:py-0">
|
||||
<div className="flex items-center">
|
||||
{/* Status-Icon */}
|
||||
<span
|
||||
className={
|
||||
input.status === "active"
|
||||
? "text-green-500"
|
||||
: "text-red-500"
|
||||
}
|
||||
>
|
||||
{input.status === "active" ? "●" : "⨉"}
|
||||
</span>
|
||||
{/* Swap-Icon wird angezeigt, wenn invertiert */}
|
||||
{input.isInverted && (
|
||||
<Icon
|
||||
icon="mdi:swap-vertical"
|
||||
className="text-red-500 ml-2 text-xl cursor-pointer"
|
||||
title="Invertiert"
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td className="p-2 xl:py-0">{input.description}</td>
|
||||
<td className="p-2 xl:py-0">
|
||||
<Icon
|
||||
|
||||
Reference in New Issue
Block a user