This commit is contained in:
Cloudburst 2022-10-02 21:41:48 +02:00 committed by GitHub
parent 6b75370283
commit 1a1bb27773
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,7 @@ const IndexPage = () => {
</div> </div>
</div> </div>
</div> </div>
{(!repos && !setHadError) && {(!repos && !hadError) &&
<div class="alert shadow-lg w-full mx-10 md:w-2/3 mb-5"> <div class="alert shadow-lg w-full mx-10 md:w-2/3 mb-5">
<div> <div>
<span>Fetching data...</span> <span>Fetching data...</span>
@ -54,7 +54,7 @@ const IndexPage = () => {
{repos.map((it, index) => <RepoCard repoData={it} key={index} isFirst={index===0}/>)} {repos.map((it, index) => <RepoCard repoData={it} key={index} isFirst={index===0}/>)}
</> </>
} }
{(!repos && setHadError) && {(!repos && hadError) &&
<div class="alert alert-error shadow-lg w-full mx-10 md:w-2/3 mb-5"> <div class="alert alert-error shadow-lg w-full mx-10 md:w-2/3 mb-5">
<div> <div>
<BiErrorAlt /> <BiErrorAlt />