diff --git a/Lab5/src/components/logins/hooks/EntrysDataHook.js b/Lab5/src/components/logins/hooks/EntrysDataHook.js index 5367865..d7a4c66 100644 --- a/Lab5/src/components/logins/hooks/EntrysDataHook.js +++ b/Lab5/src/components/logins/hooks/EntrysDataHook.js @@ -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 ?? []); };