1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-10-28 02:15:47 -04:00

update component prop types to use JSX.IntrinsicElements

This commit is contained in:
2022-02-09 09:37:20 -05:00
parent f205a14bdc
commit 885f97fa64
40 changed files with 280 additions and 275 deletions

View File

@@ -1,10 +1,9 @@
import Document, { Html, Head, Main, NextScript } from "next/document";
import classNames from "classnames";
import * as config from "../lib/config";
import type { DocumentContext } from "next/document";
class MyDocument extends Document {
class CustomDocument extends Document {
static async getInitialProps(ctx: DocumentContext) {
const initialProps = await Document.getInitialProps(ctx);
return { ...initialProps };
@@ -23,4 +22,4 @@ class MyDocument extends Document {
}
}
export default MyDocument;
export default CustomDocument;

View File

@@ -33,7 +33,7 @@ const License = () => (
<HorizontalRule />
<H2>Creative Commons Attribution 4.0 International Public License</H2>
<H2 id="full-text">Creative Commons Attribution 4.0 International Public License</H2>
<p style={{ textAlign: "center", lineHeight: 0 }}>
<a

View File

@@ -17,7 +17,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
// TODO: make this not manual (serverless functions can't see /pages at runtime)
const pages: Page[] = [
{ relUrl: "/", priority: 1.0, changeFreq: "weekly" }, // homepage
{ relUrl: "/notes/" },
{ relUrl: "/notes/", changeFreq: "weekly" },
{ relUrl: "/birthday/" },
{ relUrl: "/cli/" },
{ relUrl: "/contact/" },
@@ -28,6 +28,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
{ relUrl: "/privacy/", priority: 0.1, changeFreq: "yearly" },
{ relUrl: "/projects/", changeFreq: "daily" },
{ relUrl: "/uses/" },
{ relUrl: "/y2k/" },
];
// push notes separately and use their metadata