Skip to content

Commit

Permalink
feat: Cookie svg when no jobs are found because its fun
Browse files Browse the repository at this point in the history
  • Loading branch information
matvp91 committed Sep 16, 2024
1 parent 2b986be commit bb6cac2
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
26 changes: 26 additions & 0 deletions packages/dashboard/src/assets/cookie.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion packages/dashboard/src/pages/JobsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { useJobsFilter } from "@/hooks/useJobsFilter";
import { JobsStats } from "@/components/JobsStats";
import { filterJobs } from "@/lib/jobs-filter";
import { StretchLoader } from "@/components/StretchLoader";
import cookieSvg from "@/assets/cookie.svg";

export function JobsPage() {
const [filter, setFilter] = useJobsFilter();
Expand Down Expand Up @@ -37,7 +38,12 @@ export function JobsPage() {
{filteredJobs.length ? (
<JobsList jobs={filteredJobs} />
) : (
<div>There's nothing here...</div>
<div className="py-4 flex justify-center">
<div className="flex flex-col gap-2 items-center text-muted-foreground">
<img className="w-12" src={cookieSvg} />
<p>There's no jobs here</p>
</div>
</div>
)}
</Container>
);
Expand Down

0 comments on commit bb6cac2

Please sign in to comment.