add documents

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

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'))
},