снова правки
This commit is contained in:
parent
4e0c82335e
commit
81f072131f
@ -1,10 +1,11 @@
|
|||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import EntrysDataApiService from '../service/EntrysDataApiService';
|
import EntrysDataApiService from '../service/EntrysDataApiService';
|
||||||
|
|
||||||
const useEntrysData = () => {
|
const useEntrysData = (login, password) => {
|
||||||
const [entrys, setEntrys] = useState([]);
|
const [entrys, setEntrys] = useState([]);
|
||||||
|
|
||||||
const getEntrysData = async () => {
|
const getLogin = async () => {
|
||||||
|
const expand = `?login=${login}`;
|
||||||
const data = await EntrysDataApiService.getAll();
|
const data = await EntrysDataApiService.getAll();
|
||||||
setEntrys(data ?? []);
|
setEntrys(data ?? []);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user