Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation Functions #72

Merged
merged 3 commits into from
May 11, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
file names in the validation folder have been updated.
  • Loading branch information
yunusedemirci committed May 9, 2024
commit 40f8af9a5dc1dc7130edef970d6778ae0c1a4782
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { validation } from "src/utils/validation";
import * as yup from "yup";
import { validation } from "@/utils/validation";

export const loginValidation = async (values) => {
const schema = yup.object().shape({
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/login.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { FormControl, Button, TextField } from "@mui/material";
import { loginValidation } from "@/configs/validation/loginScheme";
import { useState, useEffect } from "react";
import { loginValidation } from "src/configs/validation/loginScheme";

const { default: BlankLayout } = require("@/layout/BlankLayout");
const { default: BlankLayout } = require("src/layout/BlankLayout");

const Login = () => {
const [formData, setFormData] = useState(null);
Expand Down