Ignore:
Timestamp:
06/17/24 21:59:14 (5 months ago)
Author:
223021 <daniel.ilievski.2@…>
Branches:
main
Children:
08f82ec
Parents:
b248810
Message:

Added an edit profile page for both job seekers and recruiters, where they can upload profile pictures/company logos and edit their profile data. Added profile page specifically for recruiters. Refactored existing code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jobvista-frontend/src/views/auth/SignInForm.js

    rb248810 rbefb988  
    88import {yupResolver} from "@hookform/resolvers/yup";
    99import {AuthActions} from "../../redux/actions/authActions";
     10import {notifyIncorrectEmailOrPassword} from "../../utils/toastUtils";
    1011
    1112export const SignInForm = () => {
     
    2728    const signIn = async (values) => {
    2829        try {
    29             dispatch(AuthActions.signIn(values.emailLog, values.passwordLog,
    30                     success => {
    31                     // createSnackbar({
    32                     //     message: success ? 'Successfully signed up.' : 'Error while signing up. Try again!',
    33                     //     timeout: 2500,
    34                     //     theme: success ? 'success' : 'error'
    35                     // });
    36                     success && navigate("/");
     30            dispatch(AuthActions.signIn(values.emailLog, values.passwordLog, success => {
     31                    if(success) {
     32                        navigate("/")
     33                    } else {
     34                        notifyIncorrectEmailOrPassword()
     35                    }
    3736                }));
    3837        } catch (err) {
    39             console.error(err);
     38            // console.error(err);
    4039        }
    4140    }
Note: See TracChangeset for help on using the changeset viewer.