diff --git a/pages/o-gractwie.tsx b/pages/o-gractwie.tsx index 8dbe62d..1d4119a 100644 --- a/pages/o-gractwie.tsx +++ b/pages/o-gractwie.tsx @@ -23,7 +23,7 @@ const PageInfo = () => { setFunFact("Genezą nazwy Gractwa jest złączenie słów „Gracz” i „Bractwo”."); } useEffect(() => { - fetch("https://gractwo.pl/api/v1/admincards") + fetch("https://gractwo.pl/api/v1/persons-of-note") .then((res) => { return res.json(); }) @@ -95,7 +95,7 @@ const PageInfo = () => {
{personsList .filter((el: apiResType) => { - return !el.IsAdmin; + return el.IsAdmin; }) .map((el: apiResType) => { return ( @@ -123,7 +123,7 @@ const PageInfo = () => { })}
- {/*
+

osoby godne uwagi

{personsList @@ -155,7 +155,7 @@ const PageInfo = () => { ); })}
-
*/} +

linki i przekierowania

diff --git a/pages/profil/[profname]/index.tsx b/pages/profil/[profname]/index.tsx index 3bd1051..5d0309e 100644 --- a/pages/profil/[profname]/index.tsx +++ b/pages/profil/[profname]/index.tsx @@ -18,7 +18,7 @@ const ProfilePage = () => { const [persons, setPersons] = useState([]); const [loading, setLoading] = useState(true); useEffect(() => { - fetch("https://gractwo.pl/api/v1/admincards") + fetch("https://gractwo.pl/api/v1/persons-of-note") .then((res) => { return res.json(); })