feat: add front page stock movements

This commit is contained in:
2026-06-26 17:53:21 +03:00
parent 1423451713
commit e55b421ed7
4 changed files with 102 additions and 11 deletions
+4 -1
View File
@@ -1,7 +1,8 @@
import { useState } from "react";
import PageLayout from "../components/PageLayout";
import AdminItems from "../components/AdminItems";
import AdminOrders from "../components/AdminOrders"; // добавим позже
import AdminOrders from "../components/AdminOrders";
import AdminStock from "../components/AdminStock";
// import AdminStaff from "../components/AdminStaff"; // добавим позже
export default function AdminPage() {
@@ -10,6 +11,7 @@ export default function AdminPage() {
const tabs = [
{ key: "items", label: "Товары" },
{ key: "orders", label: "Заказы" },
{ key: "stock", label: "Склад" },
{ key: "staff", label: "Сотрудники" },
];
@@ -39,6 +41,7 @@ export default function AdminPage() {
{/* Содержимое активной вкладки */}
{tab === "items" && <AdminItems />}
{tab === "orders" && <AdminOrders />}
{tab === "stock" && <AdminStock />}
{tab === "staff" && (
<p className="text-white/50">Раздел сотрудников в разработке</p>
)}