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

organize types a bit more sanely & bump deps

This commit is contained in:
2022-02-24 07:06:34 -05:00
parent d24d29a04e
commit e6f1955efb
16 changed files with 267 additions and 645 deletions

View File

@ -7,7 +7,7 @@ import RepositoryCard from "../components/RepositoryCard/RepositoryCard";
import { OctocatOcticon } from "../components/Icons";
import { authorSocial } from "../lib/config";
import type { GetStaticProps } from "next";
import type { RepoType } from "../types";
import type { RepositoryType } from "../types";
const Projects = ({ repos }) => (
<>
@ -22,7 +22,7 @@ const Projects = ({ repos }) => (
<Content>
<div className="wrapper">
{repos.map((repo: RepoType) => (
{repos.map((repo: RepositoryType) => (
<div key={repo.name} className="card">
<RepositoryCard {...repo} />
</div>
@ -116,7 +116,7 @@ export const getStaticProps: GetStaticProps = async () => {
}
);
const repos: RepoType[] = user.repositories.edges.map(({ node: repo }) => ({
const repos: RepositoryType[] = user.repositories.edges.map(({ node: repo }) => ({
name: repo.name,
url: repo.url,
description: repo.description,