This commit is contained in:
Ismail Ali
2025-03-16 12:01:42 +01:00
parent 89994f767a
commit ea0e21892a
5 changed files with 62 additions and 10 deletions

View File

@@ -50,11 +50,7 @@ const TDRChartActionBar: React.FC = () => {
const handleSortToggle = () => {
setSortAscending(!sortAscending);
setDateiListe((prevListe) =>
[...prevListe].sort((a, b) =>
sortAscending ? a.localeCompare(b) : b.localeCompare(a)
)
);
setDateiListe((prevListe) => [...prevListe].reverse()); // 🔄 Umkehren der Reihenfolge
};
const handleAktualisieren = () => {
@@ -130,7 +126,8 @@ const TDRChartActionBar: React.FC = () => {
});
}, []);
const BASE_URL = "http://localhost:3002";
const BASE_URL = window.location.origin;
console.log("BASE_URL in TDRChartACtionBar:", BASE_URL);
const [showChart, setShowChart] = useState(false);
@@ -214,12 +211,15 @@ const TDRChartActionBar: React.FC = () => {
<span className="ml-1">Sortieren</span>
</button>
<button
{/* Aktualisieren-Button */}
{/*
<button
onClick={handleAktualisieren}
className="px-3 py-1 bg-green-500 text-white rounded text-sm"
>
Aktualisieren
</button>
*/}
</div>
);
};