Tabelle hinzugefügt
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user