mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-10-21 05:06:22 -04:00
add getStaticProps types
This commit is contained in:
17 files changed
+67
-50
No files matched your search
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user