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

add getStaticProps types

This commit is contained in:
2022-06-30 20:56:34 -04:00
parent 5f22b7989d
commit 887c24d317
17 changed files with 67 additions and 50 deletions

View File

@@ -2,7 +2,7 @@ import Link from "../Link";
import Time from "../Time";
import { styled } from "../../lib/styles/stitches.config";
import type { ReactElement } from "react";
import type { NoteFrontMatter } from "../../types";
import type { NotesByYear } from "../../types";
const Section = styled("section", {
fontSize: "1.1em",
@@ -55,9 +55,7 @@ const PostDate = styled(Time, {
});
export type NotesListProps = {
notesByYear: {
[year: string]: NoteFrontMatter[];
};
notesByYear: NotesByYear;
};
const NotesList = ({ notesByYear }: NotesListProps) => {