снова правки

This commit is contained in:
DyCTaTOR 2024-01-07 19:09:54 +03:00
parent 4e0c82335e
commit 81f072131f

View File

@ -1,10 +1,11 @@
import { useEffect, useState } from 'react';
import EntrysDataApiService from '../service/EntrysDataApiService';
const useEntrysData = () => {
const useEntrysData = (login, password) => {
const [entrys, setEntrys] = useState([]);
const getEntrysData = async () => {
const getLogin = async () => {
const expand = `?login=${login}`;
const data = await EntrysDataApiService.getAll();
setEntrys(data ?? []);
};