Skip to content

Commit

Permalink
[/][xs]: explicit type imports
Browse files Browse the repository at this point in the history
  • Loading branch information
olayway committed Oct 23, 2023
1 parent 24a992f commit 1606453
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions pages/[[...slug]].tsx
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 2 additions & 2 deletions pages/_all.tsx
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
5 changes: 2 additions & 3 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions pages/blog/index.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit 1606453

Please sign in to comment.