mui datepicker

This commit is contained in:
2023-07-10 15:07:12 +03:30
parent d00625c46d
commit 4eaa18e3d2
4 changed files with 124 additions and 42 deletions

View File

@@ -1,4 +1,5 @@
import LinkRouting from "@/core/components/LinkRouting";
import MuiDatePicker from "@/core/components/MuiDatePicker";
// import Notifications from "@/core/components/notifications";
import PasswordField from "@/core/components/PasswordField";
import StyledForm from "@/core/components/StyledForm";
@@ -35,20 +36,20 @@ const LoginComponent = () => {
const backUrlDecodedPath = searchParams.get("back_url");
// formik properties
// const handleSubmit = async (values, props) => {
// await axios
// .post(GET_USER_TOKEN, {
// username: values.username,
// password: values.password,
// })
// .then(function (response) {
// setToken(response.data.token);
// })
// .catch(function (error) {
// Notifications(directionApp, error.response, t);
// props.setSubmitting(false);
// });
// };
// const handleSubmit = async (values, props) => {
// await axios
// .post(GET_USER_TOKEN, {
// username: values.username,
// password: values.password,
// })
// .then(function (response) {
// setToken(response.data.token);
// })
// .catch(function (error) {
// Notifications(directionApp, error.response, t);
// props.setSubmitting(false);
// });
// };
const initialValues = {
username: "",
password: "",
@@ -99,6 +100,7 @@ const LoginComponent = () => {
props.touched.username ? props.errors.username : null
}
/>
{/* <MuiDatePicker /> */}
<PasswordField
name="password"
label={t("LoginPage.text_field_password")}

View File