fix backlinks type and imports

This commit is contained in:
Triston Armstrong 2023-12-31 15:15:25 -06:00
parent 72289219eb
commit 58b03b3b96

View File

@ -1,8 +1,8 @@
import Head from "next/head";
import Layout from "../../components/Layout";
import Util from "../../lib/utils"
import FolderTree from "../../components/FolderTree";
import MDContent from "../../components/MDContent";
import Layout from "components/Layout";
import Util from "lib/utils"
import FolderTree from "components/FolderTree";
import MDContent, { type LinkType } from "components/MDContent";
import type { GetStaticProps } from "next/types";
import type { ParsedUrlQuery } from "querystring";
@ -12,7 +12,7 @@ interface HomeProps {
content: string
tree: Record<string, unknown>
flattenNodes: unknown[]
backLinks: unknown[]
backLinks: LinkType[]
}
export default function Home({ note, backLinks, fileNames: _, tree, flattenNodes }: HomeProps) {