rename TagSelect.css

This commit is contained in:
Дмитрий Савенко 2023-01-20 18:32:01 +03:00
parent 7c87fc7e88
commit 3081c5fd7d
2 changed files with 9 additions and 9 deletions

View File

@ -31,7 +31,7 @@ export const apiRequest = (url, {
}) })
.then(response => new Promise(resolve => { .then(response => new Promise(resolve => {
if (response.data.redirect || response.status === 401) { if (response.data.redirect || response.status === 401) {
window.location.reduce('/'); window.location.replace('/');
localStorage.clear(); localStorage.clear();
// dispatch(auth(false)); // dispatch(auth(false));
} }

View File

@ -11,7 +11,7 @@ import {
setPositionId setPositionId
} from '../../redux/outstaffingSlice' } from '../../redux/outstaffingSlice'
import style from './TagSelect.css' import './TagSelect.css'
const TagSelect = () => { const TagSelect = () => {
@ -43,20 +43,20 @@ const TagSelect = () => {
return ( return (
<> <>
<section className={style?.search}> <section className='search'>
<div className='row'> <div className='row'>
<div className='col-12'> <div className='col-12'>
<h2 className={style?.search__title}> <h2 className='search__title'>
Найти специалиста по навыкам Найти специалиста по навыкам
</h2> </h2>
<div className={style?.search__box}> <div className='search__box'>
<Select <Select
value={itemsArr} value={itemsArr}
onChange={(value) => {console.log(value) ;return dispatch(selectedItems(value))}} onChange={(value) => dispatch(selectedItems(value))}
isMulti isMulti
name='tags' name='tags'
className={style?.select} className='select'
classNamePrefix={style?.select} classNamePrefix='select'
options={ options={
tagsArr && tagsArr &&
tagsArr.flat().map((item) => { tagsArr.flat().map((item) => {
@ -71,7 +71,7 @@ const TagSelect = () => {
<button <button
onClick={() => handleSubmit({dispatch, setSearchLoading})} onClick={() => handleSubmit({dispatch, setSearchLoading})}
type='submit' type='submit'
className={style?.search__submit} className='search__submit'
> >
{searchLoading ? <Loader width={30} height={30}/> : 'Поиск'} {searchLoading ? <Loader width={30} height={30}/> : 'Поиск'}
</button> </button>