1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2026-01-14 10:42:56 -05: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

@@ -88,19 +88,14 @@ const Footer = ({ ...rest }: FooterProps) => {
<Row>
<div>
Content{" "}
<PlainLink
href="/license/"
prefetch={false}
title="Creative Commons Attribution 4.0 International"
underline={false}
>
licensed under CC-BY-4.0
<PlainLink href="/license/" prefetch={false} title={config.license} underline={false}>
licensed under {config.licenseAbbr}
</PlainLink>
,{" "}
<PlainLink href="/previously/" prefetch={false} title="Previously on..." underline={false}>
2001
{config.copyrightYearStart}
</PlainLink>{" "}
{new Date(process.env.NEXT_PUBLIC_RELEASE_DATE || Date.now()).getUTCFullYear()}.
{new Date(process.env.RELEASE_DATE || Date.now()).getUTCFullYear()}.
</div>
<div>

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) => {