1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-03 17:26:37 -04:00

all components should accept additional classnames

This commit is contained in:
2022-01-20 12:06:05 -05:00
parent 2162e9d563
commit 7e37adabc1
22 changed files with 150 additions and 86 deletions

View File

@ -6,7 +6,11 @@ import { ProjectsIcon } from "../components/Icons";
import type { GetStaticProps } from "next";
import { RepoType } from "../types";
const Projects = (props: { repos: RepoType[] }) => (
type Props = {
repos: RepoType[];
};
const Projects = ({ repos }: Props) => (
<>
<NextSeo
title="Projects"
@ -20,7 +24,7 @@ const Projects = (props: { repos: RepoType[] }) => (
</PageTitle>
<div className="wrapper">
{props.repos.map((repo: RepoType) => (
{repos.map((repo: RepoType) => (
<div key={repo.name} className="card">
<RepositoryCard {...repo} />
</div>