Skip to content

Commit

Permalink
Merge pull request #99 from ZerreMC/main
Browse files Browse the repository at this point in the history
feat: creation of message not found in the Projects filter
  • Loading branch information
afordigital authored Apr 8, 2024
2 parents 4b9e9bc + debccf7 commit 88dd308
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/pages/Projects/Projects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ export const Projects = () => {
/>
);
});

const renderNoProjectsFound = () => {
return (
<div className={`animate-fade-up-custom text-center text-gray`}>
<p>Lo sentimos...</p>
<p>No se ha encontrado ningún proyecto.</p>
</div>
);
};

const renderLoading = () => {
return (
<div className="absolute inset-0 mx-auto mt-20 grid place-items-center gap-4">
Expand Down Expand Up @@ -130,6 +140,7 @@ export const Projects = () => {
<section className="grid sm:grid-cols-[repeat(auto-fit,_minmax(390px,1fr))] gap-6 pt-12 justify-items-center relative h-full w-full">
{isLoading && renderLoading()}
{isActive ? renderProjects(activeProjects) : renderProjects(closedProjects)}
{(renderProjects(activeProjects) || renderProjects(closedProjects)).length === 0 && !isLoading && renderNoProjectsFound()}
</section>
</div>
</main>
Expand Down

0 comments on commit 88dd308

Please sign in to comment.