From 0ca1978c81686766205aa786482315ec23d0c1dc Mon Sep 17 00:00:00 2001 From: Andrei Duvakin Date: Mon, 10 Feb 2025 19:28:48 +0500 Subject: [PATCH] =?UTF-8?q?=D1=80=D0=B0=D1=81=D0=BF=D1=80=D0=B5=D0=B4?= =?UTF-8?q?=D0=B5=D0=BB=D0=B8=D0=BB=20=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=D1=8B?= =?UTF-8?q?=20=D0=B0=D0=BF=D0=B8=20=D0=BF=D0=BE=20=D0=BF=D0=B0=D0=BF=D0=BA?= =?UTF-8?q?=D0=B0=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web-app/src/AuthContext.jsx | 2 +- web-app/src/api/{ => auth}/LoginRequest.jsx | 2 +- web-app/src/api/{ => patients}/GetAllPatients.jsx | 2 +- web-app/src/components/PatientModal.jsx | 3 ++- web-app/src/pages/PatientsPage.jsx | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) rename web-app/src/api/{ => auth}/LoginRequest.jsx (91%) rename web-app/src/api/{ => patients}/GetAllPatients.jsx (94%) diff --git a/web-app/src/AuthContext.jsx b/web-app/src/AuthContext.jsx index 2647cbb..c76789f 100644 --- a/web-app/src/AuthContext.jsx +++ b/web-app/src/AuthContext.jsx @@ -1,6 +1,6 @@ import {createContext, useState, useContext, useEffect} from "react"; import PropTypes from "prop-types"; -import loginUser from "./api/LoginRequest.jsx"; +import loginUser from "./api/auth/LoginRequest.jsx"; import {Spin} from "antd"; const AuthContext = createContext(undefined); diff --git a/web-app/src/api/LoginRequest.jsx b/web-app/src/api/auth/LoginRequest.jsx similarity index 91% rename from web-app/src/api/LoginRequest.jsx rename to web-app/src/api/auth/LoginRequest.jsx index 830f77e..84409e5 100644 --- a/web-app/src/api/LoginRequest.jsx +++ b/web-app/src/api/auth/LoginRequest.jsx @@ -1,5 +1,5 @@ import axios from "axios"; -import CONFIG from "../core/Config.jsx"; +import CONFIG from "../../core/Config.jsx"; const loginUser = async (loginData) => { try { diff --git a/web-app/src/api/GetAllPatients.jsx b/web-app/src/api/patients/GetAllPatients.jsx similarity index 94% rename from web-app/src/api/GetAllPatients.jsx rename to web-app/src/api/patients/GetAllPatients.jsx index ed672b3..48d8b09 100644 --- a/web-app/src/api/GetAllPatients.jsx +++ b/web-app/src/api/patients/GetAllPatients.jsx @@ -1,5 +1,5 @@ import axios from "axios"; -import CONFIG from "../core/Config.jsx"; +import CONFIG from "../../core/Config.jsx"; const getAllPatients = async (token) => { diff --git a/web-app/src/components/PatientModal.jsx b/web-app/src/components/PatientModal.jsx index 2e0dd81..84b16e0 100644 --- a/web-app/src/components/PatientModal.jsx +++ b/web-app/src/components/PatientModal.jsx @@ -2,6 +2,7 @@ import {useEffect} from "react"; import {Modal, Form, Input, DatePicker} from "antd"; import moment from "moment"; import PropTypes from "prop-types"; +import locale from "antd/es/date-picker/locale/ru_RU"; const {TextArea} = Input; @@ -77,7 +78,7 @@ const PatientModal = ({visible, onCancel, onSubmit, patient}) => { label="Дата рождения" rules={[{required: true, message: "Выберите дату рождения"}]} > - +