Skip to content

Commit

Permalink
Applied prettier formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
koss-service committed Nov 18, 2023
1 parent d2a981f commit cc705fa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
13 changes: 11 additions & 2 deletions src/components/ProjectCard.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import { IoPersonSharp } from "react-icons/io5";
import { IProject } from "../util/types";

function ProjectCard({project, setQuery}: {project: IProject, setQuery: (query: string) => void}) {
function ProjectCard({
project,
setQuery,
}: {
project: IProject;
setQuery: (query: string) => void;
}) {
const {
name,
description,
Expand All @@ -25,7 +31,10 @@ function ProjectCard({project, setQuery}: {project: IProject, setQuery: (query:
</h3>
<div className="flex flex-wrap gap-2.5">
{tags.map((tag) => (
<button onClick={() => setQuery(tag)} className="hover:underline rounded-md px-2.5 py-0.5 bg-primary-800 text-sm">
<button
onClick={() => setQuery(tag)}
className="hover:underline rounded-md px-2.5 py-0.5 bg-primary-800 text-sm"
>
{tag}
</button>
))}
Expand Down
6 changes: 5 additions & 1 deletion src/pages/Projects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ function Projects() {
) : projects.length > 0 ? (
<div className="grid grid-cols-1 pb-16 md:grid-cols-2 lg:grid-cols-3 max-w-7xl gap-4 px-8">
{searchResults.map((project, i) => (
<ProjectCard key={i} project={project} setQuery={(query) => setQuery(query)} />
<ProjectCard
key={i}
project={project}
setQuery={(query) => setQuery(query)}
/>
))}
</div>
) : (
Expand Down

0 comments on commit cc705fa

Please sign in to comment.