add documents

This commit is contained in:
m1kolay committed 2022-02-11 15:34:31 +02:00
1 parent d4ec833a31
commit 9f1179db39
57 files changed
+1659 -8

No files matched your search

+4 -2
View File
@@ -2,10 +2,11 @@ import React, { useState } from 'react'
import { Link } from 'react-router-dom'
import { useDispatch, useSelector } from 'react-redux'
import { auth } from '../../redux/outstaffingSlice'
import { auth, setUserInfo } from '../../redux/outstaffingSlice'
import { loading } from '../../redux/loaderSlice'
import ellipse from '../../images/ellipse.png'
import { Loader } from '../Loader/Loader'
import { fetchAuth } from '../../server/server'
@@ -74,8 +75,9 @@ export const AuthBox = ({ title, roleChangeLink }) => {
fetchAuth({
username,
password,
dispatch: () => {
dispatch: (resJSON) => {
dispatch(auth(true))
dispatch(setUserInfo(resJSON))
dispatch(loading(false))
dispatch(setRole('ROLE_PARTNER'))
},