From f9dc2e25a821f9d48df428e7dc1f772d70812a85 Mon Sep 17 00:00:00 2001 From: jakubmanczak Date: Wed, 28 Dec 2022 18:29:57 +0100 Subject: [PATCH 1/2] adapt site to /persons-of-note endpoint change --- pages/o-gractwie.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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

From 0b39570442fb98f341d3fab88d3e05030f64e521 Mon Sep 17 00:00:00 2001 From: jakubmanczak Date: Thu, 29 Dec 2022 17:33:35 +0100 Subject: [PATCH 2/2] forgor about profiles --- pages/profil/[profname]/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/profil/[profname]/index.tsx b/pages/profil/[profname]/index.tsx index cc4a8be..2ef7006 100644 --- a/pages/profil/[profname]/index.tsx +++ b/pages/profil/[profname]/index.tsx @@ -17,7 +17,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(); })