diff --git a/frontend/src/app/data/page.tsx b/frontend/src/app/data/page.tsx index d5ec5820..5fc44bc1 100644 --- a/frontend/src/app/data/page.tsx +++ b/frontend/src/app/data/page.tsx @@ -25,14 +25,9 @@ interface DataModel { pve_version: string; } -interface Aotd { - nsapp: string; - count: number; -} const DataFetcher: React.FC = () => { const [data, setData] = useState([]); - const [aotd, setAotd] = useState([]); const [loading, setLoading] = useState(true); const [error, setError] = useState(null); const [searchQuery, setSearchQuery] = useState(''); @@ -54,16 +49,6 @@ const DataFetcher: React.FC = () => { } finally { setLoading(false); } - try { - const response = await fetch("http://api.htl-braunau.at/data/json/appoftheday"); - if (!response.ok) throw new Error("Failed to fetch data: ${response.statusText}"); - const result: Aotd[] = await response.json(); - setAotd(result); - } catch (err) { - setError((err as Error).message); - } finally { - setLoading(false); - } }; fetchData(); @@ -137,10 +122,6 @@ const DataFetcher: React.FC = () => { return (

Created LXCs

-
-

Application of the Day

- {aotd.nsapp} ({aotd.count} times) -