From f9dc2e25a821f9d48df428e7dc1f772d70812a85 Mon Sep 17 00:00:00 2001 From: jakubmanczak Date: Wed, 28 Dec 2022 18:29:57 +0100 Subject: [PATCH] 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