fixed sidebar and backend for sidebar

This commit is contained in:
2025-08-19 14:00:00 +02:00
parent 298bc81435
commit 06f84cddc4
4 changed files with 28 additions and 10 deletions

View File

@@ -32,7 +32,12 @@ const Sidebar: React.FC = () => {
key={item.item_name}
className="bg-white/80 rounded-xl p-4 shadow hover:shadow-md transition"
>
<Object title={item.item_name} description={"test"} />
<Object
title={item.item_name}
description={
item.inSafe ? "Im Schließfach" : "Nicht im Schließfach"
}
/>
</div>
))}
</div>
@@ -40,8 +45,8 @@ const Sidebar: React.FC = () => {
<div className="mt-6 text-xs text-gray-400 flex items-center gap-4">
<span className="inline-block w-3 h-3 bg-green-400 rounded-full"></span>
Verfügbar
<span className="inline-block w-3 h-3 bg-blue-400 rounded-full"></span>
Verliehen
<span className="inline-block w-3 h-3 bg-red-400 rounded-full"></span>
Außerhalb des Schließfachs
</div>
</aside>
);