fix(frontend)

This commit is contained in:
2026-06-04 14:25:22 +03:00
parent f240b55dda
commit 4facd4fcc6
4 changed files with 27 additions and 10 deletions
+5 -8
View File
@@ -1,7 +1,6 @@
import { useEffect, useState } from "react";
import * as api from "../api"; // Импортируем все функции из api/index.js
import Header from "../components/Header";
import Footer from "../components/Footer";
import PageLayout from "../components/PageLayout";
export default function Dashboard() {
const [items, setItems] = useState([]);
@@ -18,9 +17,8 @@ export default function Dashboard() {
}, []);
return (
<div>
<Header />
<div className="p-4 flex flex-col w-full gap-4">
<PageLayout>
<main className="p-16 grow w-full gap-4">
{Array.isArray(items) &&
items.map((item) => (
<div
@@ -45,8 +43,7 @@ export default function Dashboard() {
</div>
</div>
))}
</div>
<Footer />
</div>
</main>
</PageLayout>
);
}