From 75f1f55468a55f70702eb929c6f33801d9960e54 Mon Sep 17 00:00:00 2001 From: storywithoutend Date: Mon, 23 Oct 2023 19:54:42 +0800 Subject: [PATCH] fix lint errors --- components/src/components/organisms/Dialog/Dialog.tsx | 2 +- docs/src/components/CodeBlock/CodeBlock.tsx | 1 - docs/src/components/Palette/Palette.tsx | 2 +- docs/src/pages/components/[...slug].tsx | 4 ---- docs/src/pages/guides/[slug].tsx | 3 +-- 5 files changed, 3 insertions(+), 9 deletions(-) diff --git a/components/src/components/organisms/Dialog/Dialog.tsx b/components/src/components/organisms/Dialog/Dialog.tsx index 204a186f..a060e10e 100644 --- a/components/src/components/organisms/Dialog/Dialog.tsx +++ b/components/src/components/organisms/Dialog/Dialog.tsx @@ -210,7 +210,7 @@ const Heading = ({ ) } -const Content = ({ children }: React.PropsWithChildren) => { +const Content = ({ children }: { children?: React.ReactNode }) => { return ( ) => ( ({ diff --git a/docs/src/pages/guides/[slug].tsx b/docs/src/pages/guides/[slug].tsx index f0f67d46..67ab3892 100644 --- a/docs/src/pages/guides/[slug].tsx +++ b/docs/src/pages/guides/[slug].tsx @@ -9,12 +9,11 @@ import { MDXRemote, MDXRemoteSerializeResult } from 'next-mdx-remote' import { serialize } from 'next-mdx-remote/serialize' import matter from 'gray-matter' -import { Box, Typography, tokens } from '@ensdomains/thorin' +import { Box } from '@ensdomains/thorin' import { Props as LayoutProps, getLayout } from '~/layouts/docs' import { getGuideName, getGuidePaths } from '~/utils/fs' import { createGitHubLink } from '~/utils/github' -import { Link } from '~/components' import { GitHubLink } from '~/components/GitHubLink' export const getStaticPaths: GetStaticPaths = async () => ({