TDRChart
This commit is contained in:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user