diff --git a/pages/[[...slug]].tsx b/pages/[[...slug]].tsx index 25e5b9175..1d893bdf5 100644 --- a/pages/[[...slug]].tsx +++ b/pages/[[...slug]].tsx @@ -1,14 +1,14 @@ import fs from "fs"; import { NextSeo } from "next-seo"; -import { GetStaticProps, GetStaticPaths, GetStaticPropsResult } from "next"; +import type { GetStaticProps, GetStaticPaths, GetStaticPropsResult } from "next"; import type { NavItem, NavGroup } from "@portaljs/core"; import MdxPage from "@/components/MdxPage"; import clientPromise from "@/lib/mddb.mjs"; import computeFields from "@/lib/computeFields"; import parse from "@/lib/markdown"; -import type { CustomAppProps } from "./_app"; import siteConfig from "@/config/siteConfig"; +import type { CustomAppProps } from "./_app"; interface SlugPageProps extends CustomAppProps { source: any; diff --git a/pages/_all.tsx b/pages/_all.tsx index 0c4528407..d0f1b9f10 100644 --- a/pages/_all.tsx +++ b/pages/_all.tsx @@ -1,7 +1,7 @@ /* eslint import/no-default-export: off */ -import { GetStaticProps, GetStaticPropsResult } from "next"; - +import type { GetStaticProps, GetStaticPropsResult } from "next"; import { SimpleLayout } from "@portaljs/core"; + import clientPromise from "@/lib/mddb.mjs"; import type { CustomAppProps } from "./_app"; diff --git a/pages/_app.tsx b/pages/_app.tsx index e40769793..c0258a812 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -4,17 +4,16 @@ import { DefaultSeo } from "next-seo"; import { useRouter } from "next/router"; import { useEffect } from "react"; import type { AppProps } from "next/app"; - -import siteConfig from "@/config/siteConfig"; import { Layout, SearchProvider, pageview, ThemeProvider, } from "@portaljs/core"; - import type { NavGroup, NavItem } from "@portaljs/core"; +import siteConfig from "@/config/siteConfig"; + import "tailwindcss/tailwind.css"; import "@/styles/docsearch.css"; import "@/styles/global.css"; diff --git a/pages/blog/index.tsx b/pages/blog/index.tsx index a9d98e1f2..64cfed5f8 100644 --- a/pages/blog/index.tsx +++ b/pages/blog/index.tsx @@ -1,7 +1,7 @@ import fs from "fs"; -import { GetStaticProps, GetStaticPropsResult } from "next"; - +import type { GetStaticProps, GetStaticPropsResult } from "next"; import { BlogsList, SimpleLayout } from "@portaljs/core"; + import clientPromise from "@/lib/mddb.mjs"; import computeFields from "@/lib/computeFields"; import type { CustomAppProps } from "../_app";