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

clean up global styles

This commit is contained in:
2022-01-10 16:15:17 -05:00
parent 18e04bdd5f
commit 3864d18ba3
11 changed files with 103 additions and 93 deletions

View File

@ -4,8 +4,9 @@ import PageTitle from "../components/page/PageTitle";
import RepoCard from "../components/projects/RepoCard";
import { ProjectsIcon } from "../components/icons";
import type { GetStaticProps } from "next";
import { RepoType } from "../types";
const Projects = ({ repos }) => (
const Projects = (props: { repos: RepoType[] }) => (
<>
<NextSeo
title="Projects"
@ -23,7 +24,7 @@ const Projects = ({ repos }) => (
/>
<div>
{repos.map((repo) => (
{props.repos.map((repo: RepoType) => (
<div key={repo.name} className="repo_card">
<RepoCard {...repo} />
</div>
@ -103,7 +104,7 @@ export const getStaticProps: GetStaticProps = async () => {
}
);
const repos = user.repositories.edges.map(({ node: repo }) => ({
const repos: RepoType[] = user.repositories.edges.map(({ node: repo }) => ({
name: repo.name,
url: repo.url,
description: repo.description,