Tabelle hinzugefügt

This commit is contained in:
2026-04-09 16:55:02 +02:00
parent 995a4c64d8
commit 99553ad4da
4 changed files with 331 additions and 25 deletions
+3
View File
@@ -10,6 +10,7 @@ function App() {
const [error, setError] = useState(null)
const [lastUpdate, setLastUpdate] = useState(null)
const [timeRange, setTimeRange] = useState('24h') // '24h', '7d', '30d', '365d', oder {type: 'custom', start, end, days}
const [showTable, setShowTable] = useState(false)
// Handler für Zeitbereich-Änderungen
const handleTimeRangeChange = (range, customParams) => {
@@ -186,6 +187,8 @@ function App() {
rainData={rainData}
timeRange={timeRange}
onTimeRangeChange={handleTimeRangeChange}
showTable={showTable}
onToggleTable={() => setShowTable(v => !v)}
/>
</main>
</div>