создал структуру страниц наборов линз
This commit is contained in:
parent
8c9e3a05fa
commit
a7e6bb3f59
@ -4,7 +4,7 @@ import LoginPage from "./pages/LoginPage.jsx";
|
|||||||
import MainLayout from "./layouts/MainLayout.jsx";
|
import MainLayout from "./layouts/MainLayout.jsx";
|
||||||
import PatientsPage from "./pages/PatientsPage.jsx";
|
import PatientsPage from "./pages/PatientsPage.jsx";
|
||||||
import HomePage from "./pages/HomePage.jsx";
|
import HomePage from "./pages/HomePage.jsx";
|
||||||
import LensPage from "./pages/LensesPage.jsx";
|
import LensesLayout from "./layouts/LensesLayout.jsx";
|
||||||
|
|
||||||
|
|
||||||
const AppRouter = () => (
|
const AppRouter = () => (
|
||||||
@ -14,7 +14,7 @@ const AppRouter = () => (
|
|||||||
<Route element={<PrivateRoute/>}>
|
<Route element={<PrivateRoute/>}>
|
||||||
<Route element={<MainLayout/>}>
|
<Route element={<MainLayout/>}>
|
||||||
<Route path={"/patients"} element={<PatientsPage/>}/>
|
<Route path={"/patients"} element={<PatientsPage/>}/>
|
||||||
<Route path={"/lenses"} element={<LensPage/>}/>
|
<Route path={"/lenses"} element={<LensesLayout/>}/>
|
||||||
<Route path={"/"} element={<HomePage/>}/>
|
<Route path={"/"} element={<HomePage/>}/>
|
||||||
</Route>
|
</Route>
|
||||||
</Route>
|
</Route>
|
||||||
|
|||||||
0
web-app/src/components/sets/SetListCard.jsx
Normal file
0
web-app/src/components/sets/SetListCard.jsx
Normal file
44
web-app/src/layouts/LensesLayout.jsx
Normal file
44
web-app/src/layouts/LensesLayout.jsx
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
import {useState, useEffect} from "react";
|
||||||
|
import {
|
||||||
|
Input,
|
||||||
|
Select,
|
||||||
|
List,
|
||||||
|
FloatButton,
|
||||||
|
Row,
|
||||||
|
Col,
|
||||||
|
Spin,
|
||||||
|
Button,
|
||||||
|
Form,
|
||||||
|
InputNumber,
|
||||||
|
Card, Grid, notification, Tabs
|
||||||
|
} from "antd";
|
||||||
|
import LensesPage from "../pages/LensesPage.jsx";
|
||||||
|
import {FolderViewOutlined, SwitcherOutlined} from "@ant-design/icons";
|
||||||
|
|
||||||
|
const {Option} = Select;
|
||||||
|
|
||||||
|
const items = [
|
||||||
|
{
|
||||||
|
key: '1',
|
||||||
|
label: 'Линзы',
|
||||||
|
children: <LensesPage/>,
|
||||||
|
icon: <FolderViewOutlined/>
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: '2',
|
||||||
|
label: 'Наборы линз',
|
||||||
|
children: '1233',
|
||||||
|
icon: <SwitcherOutlined/>
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
const LensesLayout = () => {
|
||||||
|
return (
|
||||||
|
<Tabs
|
||||||
|
defaultActiveKey="1"
|
||||||
|
items={items}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default LensesLayout;
|
||||||
@ -27,7 +27,7 @@ const MainLayout = () => {
|
|||||||
getItem("Главная", "/", <HomeOutlined/>),
|
getItem("Главная", "/", <HomeOutlined/>),
|
||||||
getItem("Приёмы", "/appointments", <CalendarOutlined/>),
|
getItem("Приёмы", "/appointments", <CalendarOutlined/>),
|
||||||
getItem("Выдачи линз", "/dispensing", <DatabaseOutlined/>),
|
getItem("Выдачи линз", "/dispensing", <DatabaseOutlined/>),
|
||||||
getItem("Линзы", "/lenses", <FolderViewOutlined/>),
|
getItem("Линзы и наборы", "/lenses", <FolderViewOutlined/>),
|
||||||
getItem("Пациенты", "/patients", <TeamOutlined/>),
|
getItem("Пациенты", "/patients", <TeamOutlined/>),
|
||||||
getItem("Рассылки", "/mailing", <MessageOutlined/>),
|
getItem("Рассылки", "/mailing", <MessageOutlined/>),
|
||||||
{type: "divider"},
|
{type: "divider"},
|
||||||
|
|||||||
8
web-app/src/pages/SetLensesPage.jsx
Normal file
8
web-app/src/pages/SetLensesPage.jsx
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
const SetLensesPage = () => {
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
export default SetLensesPage;
|
||||||
Loading…
x
Reference in New Issue
Block a user