Skip to content

Commit

Permalink
chore: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
carina-akaia committed Nov 27, 2024
1 parent 6e04126 commit fa0e92b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/modules/project/components/ProjectDiscovery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ import {
SearchBar,
SortSelect,
} from "@/common/ui/components";
import { ListCardSkeleton } from "@/modules/lists/components/ListCardSkeleton";

import { ProjectCard } from "./ProjectCard";
import { categories, statuses } from "../constants";
import { useProjectLookup } from "../hooks/lookup";
import { ProjectCategory, ProjectListingStatusVariant } from "../types";
import { ProjectCardSkeleton } from "./ProjectCardSkeleton";

export const ProjectDiscovery = () => {
const {
Expand Down Expand Up @@ -111,7 +111,7 @@ export const ProjectDiscovery = () => {

{isProjectLookupPending ? (
Array.from({ length: 6 }, (_, index) => (
<ListCardSkeleton key={index} />
<ProjectCardSkeleton key={index} />
))
) : totalProjectCount ? (
<>
Expand All @@ -133,6 +133,7 @@ export const ProjectDiscovery = () => {
}
/>
</PaginationItem>

{(() => {
const totalPages = Math.ceil(totalProjectCount / 30);
const pages: (number | "ellipsis")[] = [];
Expand Down Expand Up @@ -191,6 +192,7 @@ export const ProjectDiscovery = () => {
</PaginationItem>
));
})()}

<PaginationItem>
<PaginationNext
onClick={() =>
Expand Down

0 comments on commit fa0e92b

Please sign in to comment.