From 58b03b3b960a2e87cd7673646409565b2197559c Mon Sep 17 00:00:00 2001 From: Triston Armstrong Date: Sun, 31 Dec 2023 15:15:25 -0600 Subject: [PATCH] fix backlinks type and imports --- pages/notes/[id].tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/notes/[id].tsx b/pages/notes/[id].tsx index 16cbe7a..8a77420 100644 --- a/pages/notes/[id].tsx +++ b/pages/notes/[id].tsx @@ -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 flattenNodes: unknown[] - backLinks: unknown[] + backLinks: LinkType[] } export default function Home({ note, backLinks, fileNames: _, tree, flattenNodes }: HomeProps) {