mirror of
https://github.com/privacy-scaling-explorations/pse.dev.git
synced 2026-04-23 03:01:03 -04:00
fix research projects
This commit is contained in:
@@ -175,10 +175,17 @@ const sortProjectByFn = ({
|
||||
...(projects as ProjectInterfaceScore[]),
|
||||
]
|
||||
.sort(SortByFnMapping[sortBy])
|
||||
.filter((project) => !ignoreCategories.includes(project.category as any))
|
||||
.filter(
|
||||
(project) =>
|
||||
!ignoreCategories
|
||||
?.map((category) => category?.toLowerCase())
|
||||
.includes(project.category?.toLowerCase() as any)
|
||||
)
|
||||
|
||||
if (category) {
|
||||
return sortedProjectList.filter((project) => project.category === category)
|
||||
return sortedProjectList.filter(
|
||||
(project) => project.category?.toLowerCase() === category?.toLowerCase()
|
||||
)
|
||||
}
|
||||
|
||||
return sortedProjectList.map((project: any) => ({
|
||||
|
||||
@@ -167,6 +167,14 @@ export const ProjectList = () => {
|
||||
className="flex justify-between gap-10"
|
||||
>
|
||||
<div className={cn("flex w-full flex-col gap-10 pt-10")}>
|
||||
{!hasSearchParams && (
|
||||
<div className="flex flex-col gap-6 overflow-hidden">
|
||||
<h3 className={cn(sectionTitleClass())}>{status}</h3>
|
||||
<span className="font-sans text-base italic text-tuatara-950">
|
||||
{description}
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
<div className="grid grid-cols-1 gap-4 md:grid-cols-2 md:gap-x-6 md:gap-y-10 lg:grid-cols-4">
|
||||
{projects.map((project: any) => (
|
||||
<ProjectCard
|
||||
|
||||
Reference in New Issue
Block a user