mui datepicker
This commit is contained in:
@@ -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")}
|
||||
|
||||
0
src/core/components/MuiDatePicker.jsx
Normal file
0
src/core/components/MuiDatePicker.jsx
Normal file
Reference in New Issue
Block a user