loader hover and devlist fixes

This commit is contained in:
kurpfish
2021-08-09 16:12:06 +03:00
parent f0a92fd8f2
commit 21d95a9c04
7 changed files with 74 additions and 49 deletions

View File

@ -1,12 +1,15 @@
import React from 'react';
import { useSelector, useDispatch } from 'react-redux';
import Select from 'react-select';
import { Loader } from '../Loader/Loader';
import style from './TagSelect.module.css';
import { selectedItems, selectItems, selectTags, filteredCandidates } from '../../redux/outstaffingSlice';
import { fetchItemsForId } from '../../server/server';
import { selectIsLoading } from '../../redux/loaderSlice';
const TagSelect = () => {
const dispatch = useDispatch();
const isLoading = useSelector(selectIsLoading)
const itemsArr = useSelector(selectItems);
@ -41,8 +44,8 @@ const TagSelect = () => {
return { id: item.id, value: item.value, label: item.value };
})}
/>
<button onClick={handleSubmit} type="submit">
Поиск
<button onClick={handleSubmit} type="submit" className={style.search__submit}>
{ isLoading ? <Loader /> : 'Поиск' }
</button>
</div>
</div>

View File

@ -70,3 +70,7 @@
font-size: 1.6em !important;
color: gray !important;
}
.search__submit:hover .loader path {
fill: #6aaf5c;
}