fix hitching & add in frames for all fetched content
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -14,7 +14,7 @@ const PageMeSettings = () => {
|
||||
</main>
|
||||
</>
|
||||
)}
|
||||
{error && (
|
||||
{!isLoading && error && (
|
||||
<main>
|
||||
<h3>Wystąpił błąd.</h3>
|
||||
<p>Tyle wiemy.</p>
|
||||
|
||||
Reference in New Issue
Block a user