lab5 it is done

This commit is contained in:
Zakharov_Rostislav 2023-12-22 14:21:37 +04:00
parent 8a650a6b9e
commit 9ea28e4839
3 changed files with 4 additions and 5 deletions

View File

@ -34,6 +34,9 @@ const Lines = () => {
return ( return (
<> <>
<h1 className='mt-2 text-md-start text-center'>
Таблица книг.
</h1>
<Button className='lib-btn' onClick={() => showFormModal()}> <Button className='lib-btn' onClick={() => showFormModal()}>
Добавить книгу Добавить книгу
</Button> </Button>

View File

@ -46,7 +46,6 @@ const useAuthorizationForm = () => {
const data = await UsersApiService.getAll(expand); const data = await UsersApiService.getAll(expand);
if (data.length !== 0) { if (data.length !== 0) {
userLogin(data[0].id); userLogin(data[0].id);
toast.success('Успешный вход в аккаунт', { id: 'Authorization' });
return true; return true;
} }
} }

View File

@ -18,10 +18,7 @@ const BooksTable = () => {
} }
return ( return (
<> <>
<h1 className='mt-2 text-md-start text-center'> <Lines/>
Таблица книг.
</h1>
<Lines />
</> </>
); );
}; };