fix hitching & add in frames for all fetched content

This commit is contained in:
2023-01-03 19:17:36 +01:00
parent 96516e60a2
commit c85bf3cae5
8 changed files with 90 additions and 17 deletions

View File

@@ -19,7 +19,7 @@ const PageMe = () => {
useEffect(() => {
if (!user) return;
fetch("https://gractwo.pl/api/v1/admincards")
fetch("https://gractwo.pl/api/v1/persons-of-note")
.then((res) => {
return res.json();
})
@@ -41,7 +41,7 @@ const PageMe = () => {
<p>Sit tight.</p>
</main>
)}
{error && (
{!isLoading && error && (
<main>
<h3>Wystąpił błąd.</h3>
<p>Tyle wiemy:</p>

View File

@@ -14,7 +14,7 @@ const PageMeSettings = () => {
</main>
</>
)}
{error && (
{!isLoading && error && (
<main>
<h3>Wystąpił błąd.</h3>
<p>Tyle wiemy.</p>