From bac04ef40ef5b1e57f4ca6939816367e3d792320 Mon Sep 17 00:00:00 2001 From: Artem Abramov1 Date: Sun, 1 Dec 2024 16:34:18 +0400 Subject: [PATCH] feat: lint with biome --- biome.json | 72 +++--- src/app/about/page.tsx | 4 +- src/app/blog/(posts)/[slug]/page.tsx | 16 +- .../categories/[category]/page.tsx | 50 ++-- .../[category]/pages/[page]/page.tsx | 64 ++--- src/app/blog/(taxonomies)/layout.tsx | 24 +- .../blog/(taxonomies)/pages/[page]/page.tsx | 58 ++--- src/app/blog/(taxonomies)/tags/[tag]/page.tsx | 48 ++-- .../tags/[tag]/pages/[page]/page.tsx | 64 ++--- src/app/blog/page.tsx | 46 ++-- .../components/AboutWidget/AboutWidget.tsx | 36 +-- .../AdvertisementWidget.tsx | 22 +- .../CategoryWidget/CategoryWidget.tsx | 30 +-- src/app/components/Sidebar/Sidebar.tsx | 30 +-- .../components/SocialWidget/SocialWidget.tsx | 30 +-- src/app/components/TagWidget/TagWidget.tsx | 34 +-- src/app/contact/page.tsx | 2 +- src/app/layout.tsx | 58 ++--- src/app/page.tsx | 98 ++++---- src/components/AboutPage/AboutPage.tsx | 48 ++-- src/components/ContactForm/ContactForm.tsx | 106 ++++---- src/components/ContactPage/ContactPage.tsx | 102 ++++---- src/components/DropdownMenu/DropdownMenu.tsx | 68 ++--- src/components/FeaturedPost/FeaturedPost.tsx | 76 +++--- src/components/Footer/Footer.tsx | 98 ++++---- src/components/Gallery/Gallery.tsx | 52 ++-- src/components/Header/Header.tsx | 238 +++++++++--------- src/components/Icon/Icon.tsx | 40 +-- src/components/Icon/Icon.types.ts | 10 +- src/components/MDXComponent/MDXComponent.tsx | 6 +- src/components/Newsletter/Newsletter.tsx | 68 ++--- src/components/Pagination/Pagination.tsx | 164 ++++++------ src/components/Paginator/Paginator.tsx | 96 +++---- src/components/PillarPost/PillarPost.tsx | 76 +++--- src/components/SearchList/SearchList.tsx | 60 ++--- src/components/SinglePost/SinglePost.tsx | 92 +++---- src/lib/fetch-utils/getAuthorBio.ts | 4 +- src/lib/fetch-utils/getAuthorInfo.ts | 4 +- src/lib/fetch-utils/getBlogs.ts | 20 +- src/lib/fetch-utils/getCategoryLinks.ts | 16 +- src/lib/fetch-utils/getSiteInfo.ts | 4 +- src/lib/fetch-utils/getSocialLinks.ts | 4 +- src/lib/fetch-utils/getTagLinks.ts | 12 +- src/lib/mdx.ts | 172 ++++++------- src/lib/utils.ts | 42 ++-- src/models/index.ts | 36 +-- 46 files changed, 1251 insertions(+), 1249 deletions(-) diff --git a/biome.json b/biome.json index edcf34f..b8b757d 100644 --- a/biome.json +++ b/biome.json @@ -1,37 +1,39 @@ { - "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", - "vcs": { - "enabled": false, - "clientKind": "git", - "useIgnoreFile": false - }, - "files": { - "ignoreUnknown": false, - "ignore": [] - }, - "formatter": { - "enabled": true, - "indentStyle": "tab" - }, - "organizeImports": { - "enabled": true - }, - "linter": { - "enabled": true, - "rules": { - "recommended": true, - "security": { - "noDangerouslySetInnerHtml": "warn" - }, - "a11y": { - "useSemanticElements": "warn", - "useKeyWithClickEvents": "warn" - } - } - }, - "javascript": { - "formatter": { - "quoteStyle": "single" - } - } + "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", + "vcs": { + "enabled": false, + "clientKind": "git", + "useIgnoreFile": false + }, + "files": { + "ignoreUnknown": false, + "ignore": [] + }, + "formatter": { + "enabled": true, + "useEditorconfig": true, + "indentStyle": "space", + "indentWidth": 2 + }, + "organizeImports": { + "enabled": true + }, + "linter": { + "enabled": true, + "rules": { + "recommended": true, + "security": { + "noDangerouslySetInnerHtml": "warn" + }, + "a11y": { + "useSemanticElements": "warn", + "useKeyWithClickEvents": "warn" + } + } + }, + "javascript": { + "formatter": { + "quoteStyle": "single" + } + } } diff --git a/src/app/about/page.tsx b/src/app/about/page.tsx index bf5b93c..02090b2 100644 --- a/src/app/about/page.tsx +++ b/src/app/about/page.tsx @@ -3,7 +3,7 @@ import { getAuthorBio } from '@/lib/fetch-utils'; import { AboutPage } from '@/components/AboutPage'; export default async function About() { - const data = await getAuthorBio(); + const data = await getAuthorBio(); - return ; + return ; } diff --git a/src/app/blog/(posts)/[slug]/page.tsx b/src/app/blog/(posts)/[slug]/page.tsx index 435c091..fd75693 100644 --- a/src/app/blog/(posts)/[slug]/page.tsx +++ b/src/app/blog/(posts)/[slug]/page.tsx @@ -6,20 +6,20 @@ import { getFileBySlug } from '@/lib/mdx'; import { SinglePost } from '@/components/SinglePost'; async function getData(slug: string) { - return getFileBySlug('blog', slug); + return getFileBySlug('blog', slug); } export default async function Blog({ params }: { params: { slug: string } }) { - const data = await getData(params.slug); - const { authorName } = await getAuthorInfo(); + const data = await getData(params.slug); + const { authorName } = await getAuthorInfo(); - return ; + return ; } export async function generateStaticParams() { - const blogs = await getBlogs(); + const blogs = await getBlogs(); - return blogs.posts.map((post) => ({ - slug: slugify(post.slug ?? ''), - })); + return blogs.posts.map((post) => ({ + slug: slugify(post.slug ?? ''), + })); } diff --git a/src/app/blog/(taxonomies)/categories/[category]/page.tsx b/src/app/blog/(taxonomies)/categories/[category]/page.tsx index ae5c4b1..121f7af 100644 --- a/src/app/blog/(taxonomies)/categories/[category]/page.tsx +++ b/src/app/blog/(taxonomies)/categories/[category]/page.tsx @@ -12,34 +12,34 @@ import { Pagination } from '@/components/Pagination'; import { Paginator } from '@/components/Paginator'; export default async function Categories({ - params, + params, }: { params: { category: string } }) { - const allPosts = await getAllFilesMetadata('blog'); - const allPostsByCategory = allPosts.filter((post) => - post.categories?.map((item) => slugify(item)).includes(params.category), - ); - const data = allPostsByCategory.slice(0, POSTS_PER_PAGE); - const { authorName } = await getAuthorInfo(); - - return ( - <> -
- -
-
- -
- - ); + const allPosts = await getAllFilesMetadata('blog'); + const allPostsByCategory = allPosts.filter((post) => + post.categories?.map((item) => slugify(item)).includes(params.category), + ); + const data = allPostsByCategory.slice(0, POSTS_PER_PAGE); + const { authorName } = await getAuthorInfo(); + + return ( + <> +
+ +
+
+ +
+ + ); } export async function generateStaticParams() { - const blogs = await getBlogs(); + const blogs = await getBlogs(); - return blogs.categories.map((category) => ({ - category: slugify(category ?? ''), - })); + return blogs.categories.map((category) => ({ + category: slugify(category ?? ''), + })); } diff --git a/src/app/blog/(taxonomies)/categories/[category]/pages/[page]/page.tsx b/src/app/blog/(taxonomies)/categories/[category]/pages/[page]/page.tsx index 35eddac..e904cb2 100644 --- a/src/app/blog/(taxonomies)/categories/[category]/pages/[page]/page.tsx +++ b/src/app/blog/(taxonomies)/categories/[category]/pages/[page]/page.tsx @@ -12,41 +12,41 @@ import { Pagination } from '@/components/Pagination'; import { Paginator } from '@/components/Paginator'; export default async function Pages({ - params, + params, }: { params: { category: string; page: string } }) { - const allPosts = await getAllFilesMetadata('blog'); - const pageIndex = Number.parseInt(params.page, 10) - 1; - const allPostsByCategory = allPosts.filter((post) => - post.categories?.map((item) => slugify(item)).includes(params.category), - ); - const data = allPostsByCategory.slice( - pageIndex * POSTS_PER_PAGE, - (pageIndex + 1) * POSTS_PER_PAGE, - ); - const { authorName } = await getAuthorInfo(); - - return ( - <> -
- -
-
- -
- - ); + const allPosts = await getAllFilesMetadata('blog'); + const pageIndex = Number.parseInt(params.page, 10) - 1; + const allPostsByCategory = allPosts.filter((post) => + post.categories?.map((item) => slugify(item)).includes(params.category), + ); + const data = allPostsByCategory.slice( + pageIndex * POSTS_PER_PAGE, + (pageIndex + 1) * POSTS_PER_PAGE, + ); + const { authorName } = await getAuthorInfo(); + + return ( + <> +
+ +
+
+ +
+ + ); } export async function generateStaticParams() { - const blogs = await getBlogs(); + const blogs = await getBlogs(); - return getPageNumbers(blogs.posts.length) - .slice(1) - .map((page) => ({ - page, - })); + return getPageNumbers(blogs.posts.length) + .slice(1) + .map((page) => ({ + page, + })); } diff --git a/src/app/blog/(taxonomies)/layout.tsx b/src/app/blog/(taxonomies)/layout.tsx index dad3adc..161bb7e 100644 --- a/src/app/blog/(taxonomies)/layout.tsx +++ b/src/app/blog/(taxonomies)/layout.tsx @@ -1,17 +1,17 @@ import { Sidebar } from '@/app/components/Sidebar'; export default async function TaxonomiesLayout({ - children, + children, }: { children: React.ReactNode }) { - return ( -
-
-
-
{children}
- {/* @ts-expect-error Async Server Component */} - -
-
-
- ); + return ( +
+
+
+
{children}
+ {/* @ts-expect-error Async Server Component */} + +
+
+
+ ); } diff --git a/src/app/blog/(taxonomies)/pages/[page]/page.tsx b/src/app/blog/(taxonomies)/pages/[page]/page.tsx index 34e6e97..8e0902f 100644 --- a/src/app/blog/(taxonomies)/pages/[page]/page.tsx +++ b/src/app/blog/(taxonomies)/pages/[page]/page.tsx @@ -10,37 +10,37 @@ import { Pagination } from '@/components/Pagination'; import { Paginator } from '@/components/Paginator'; export default async function Pages({ params }: { params: { page: string } }) { - const allPosts = await getAllFilesMetadata('blog'); - const pageIndex = Number.parseInt(params.page, 10) - 1; - - const data = allPosts.slice( - pageIndex * POSTS_PER_PAGE, - (pageIndex + 1) * POSTS_PER_PAGE, - ); - const { authorName } = await getAuthorInfo(); - - return ( - <> -
- -
-
- -
- - ); + const allPosts = await getAllFilesMetadata('blog'); + const pageIndex = Number.parseInt(params.page, 10) - 1; + + const data = allPosts.slice( + pageIndex * POSTS_PER_PAGE, + (pageIndex + 1) * POSTS_PER_PAGE, + ); + const { authorName } = await getAuthorInfo(); + + return ( + <> +
+ +
+
+ +
+ + ); } export async function generateStaticParams() { - const blogs = await getBlogs(); + const blogs = await getBlogs(); - return getPageNumbers(blogs.posts.length) - .slice(1) - .map((page) => ({ - page, - })); + return getPageNumbers(blogs.posts.length) + .slice(1) + .map((page) => ({ + page, + })); } diff --git a/src/app/blog/(taxonomies)/tags/[tag]/page.tsx b/src/app/blog/(taxonomies)/tags/[tag]/page.tsx index 708e995..755517d 100644 --- a/src/app/blog/(taxonomies)/tags/[tag]/page.tsx +++ b/src/app/blog/(taxonomies)/tags/[tag]/page.tsx @@ -12,32 +12,32 @@ import { Pagination } from '@/components/Pagination'; import { Paginator } from '@/components/Paginator'; export default async function Tags({ params }: { params: { tag: string } }) { - const allPosts = await getAllFilesMetadata('blog'); - const allPostsByTag = allPosts.filter((post) => - post.tags?.map((item) => slugify(item)).includes(params.tag), - ); - const data = allPostsByTag.slice(0, POSTS_PER_PAGE); - const { authorName } = await getAuthorInfo(); - - return ( - <> -
- -
-
- -
- - ); + const allPosts = await getAllFilesMetadata('blog'); + const allPostsByTag = allPosts.filter((post) => + post.tags?.map((item) => slugify(item)).includes(params.tag), + ); + const data = allPostsByTag.slice(0, POSTS_PER_PAGE); + const { authorName } = await getAuthorInfo(); + + return ( + <> +
+ +
+
+ +
+ + ); } export async function generateStaticParams() { - const blogs = await getBlogs(); + const blogs = await getBlogs(); - return blogs.tags.map((tag) => ({ - tag: slugify(tag ?? ''), - })); + return blogs.tags.map((tag) => ({ + tag: slugify(tag ?? ''), + })); } diff --git a/src/app/blog/(taxonomies)/tags/[tag]/pages/[page]/page.tsx b/src/app/blog/(taxonomies)/tags/[tag]/pages/[page]/page.tsx index 4fcc0bc..432064b 100644 --- a/src/app/blog/(taxonomies)/tags/[tag]/pages/[page]/page.tsx +++ b/src/app/blog/(taxonomies)/tags/[tag]/pages/[page]/page.tsx @@ -12,41 +12,41 @@ import { Pagination } from '@/components/Pagination'; import { Paginator } from '@/components/Paginator'; export default async function Pages({ - params, + params, }: { params: { tag: string; page: string } }) { - const allPosts = await getAllFilesMetadata('blog'); - const pageIndex = Number.parseInt(params.page, 10) - 1; - const allPostsByTag = allPosts.filter((post) => - post.tags?.map((item) => slugify(item)).includes(params.tag), - ); - const data = allPostsByTag.slice( - pageIndex * POSTS_PER_PAGE, - (pageIndex + 1) * POSTS_PER_PAGE, - ); - const { authorName } = await getAuthorInfo(); - - return ( - <> -
- -
-
- -
- - ); + const allPosts = await getAllFilesMetadata('blog'); + const pageIndex = Number.parseInt(params.page, 10) - 1; + const allPostsByTag = allPosts.filter((post) => + post.tags?.map((item) => slugify(item)).includes(params.tag), + ); + const data = allPostsByTag.slice( + pageIndex * POSTS_PER_PAGE, + (pageIndex + 1) * POSTS_PER_PAGE, + ); + const { authorName } = await getAuthorInfo(); + + return ( + <> +
+ +
+
+ +
+ + ); } export async function generateStaticParams() { - const blogs = await getBlogs(); + const blogs = await getBlogs(); - return getPageNumbers(blogs.posts.length) - .slice(1) - .map((page) => ({ - page, - })); + return getPageNumbers(blogs.posts.length) + .slice(1) + .map((page) => ({ + page, + })); } diff --git a/src/app/blog/page.tsx b/src/app/blog/page.tsx index 1bf373a..737f9c8 100644 --- a/src/app/blog/page.tsx +++ b/src/app/blog/page.tsx @@ -12,27 +12,27 @@ import { Pagination } from '@/components/Pagination'; import { Paginator } from '@/components/Paginator'; export default async function Blog() { - const allPosts = await getAllFilesMetadata('blog'); - - const data = allPosts.slice(0, POSTS_PER_PAGE); - const { authorName } = await getAuthorInfo(); - - return ( -
-
-
-
-
- -
-
- -
-
- {/* @ts-expect-error Async Server Component */} - -
-
-
- ); + const allPosts = await getAllFilesMetadata('blog'); + + const data = allPosts.slice(0, POSTS_PER_PAGE); + const { authorName } = await getAuthorInfo(); + + return ( +
+
+
+
+
+ +
+
+ +
+
+ {/* @ts-expect-error Async Server Component */} + +
+
+
+ ); } diff --git a/src/app/components/AboutWidget/AboutWidget.tsx b/src/app/components/AboutWidget/AboutWidget.tsx index 1912fb2..c5dff04 100644 --- a/src/app/components/AboutWidget/AboutWidget.tsx +++ b/src/app/components/AboutWidget/AboutWidget.tsx @@ -5,23 +5,23 @@ import Link from 'next/link'; import { getAuthorInfo } from '@/lib/fetch-utils'; export default async function AboutWidget() { - const authorInfo = await getAuthorInfo(); - const { title, image, authorName, summary } = authorInfo; + const authorInfo = await getAuthorInfo(); + const { title, image, authorName, summary } = authorInfo; - return ( -
-

{title}

- {authorName} -

{summary}

- - Know More - -
- ); + return ( +
+

{title}

+ {authorName} +

{summary}

+ + Know More + +
+ ); } diff --git a/src/app/components/AdvertisementWidget/AdvertisementWidget.tsx b/src/app/components/AdvertisementWidget/AdvertisementWidget.tsx index e11fb41..2bd93c3 100644 --- a/src/app/components/AdvertisementWidget/AdvertisementWidget.tsx +++ b/src/app/components/AdvertisementWidget/AdvertisementWidget.tsx @@ -1,15 +1,15 @@ import Image from 'next/image'; export const AdvertisementWidget = () => { - return ( -
- -
- ); + return ( +
+ +
+ ); }; diff --git a/src/app/components/CategoryWidget/CategoryWidget.tsx b/src/app/components/CategoryWidget/CategoryWidget.tsx index 4a3ed7e..a8a1fdf 100644 --- a/src/app/components/CategoryWidget/CategoryWidget.tsx +++ b/src/app/components/CategoryWidget/CategoryWidget.tsx @@ -3,20 +3,20 @@ import Link from 'next/link'; import { getCategoryLinks } from '@/lib/fetch-utils'; export default async function CategoryWidget() { - const categoryLinks = await getCategoryLinks(); + const categoryLinks = await getCategoryLinks(); - return ( -
-

Category

- {categoryLinks.length !== 0 && ( -
    - {categoryLinks.map(({ title, url }) => ( -
  • - {title} -
  • - ))} -
- )} -
- ); + return ( +
+

Category

+ {categoryLinks.length !== 0 && ( +
    + {categoryLinks.map(({ title, url }) => ( +
  • + {title} +
  • + ))} +
+ )} +
+ ); } diff --git a/src/app/components/Sidebar/Sidebar.tsx b/src/app/components/Sidebar/Sidebar.tsx index b88b719..0874276 100644 --- a/src/app/components/Sidebar/Sidebar.tsx +++ b/src/app/components/Sidebar/Sidebar.tsx @@ -5,19 +5,19 @@ import { SocialWidget } from '@/server-components/SocialWidget'; import { TagWidget } from '@/server-components/TagWidget'; export default async function Sidebar() { - return ( -
-
- {/* @ts-expect-error Async Server Component */} - - {/* @ts-expect-error Async Server Component */} - - {/* @ts-expect-error Async Server Component */} - - {/* @ts-expect-error Async Server Component */} - - -
-
- ); + return ( +
+
+ {/* @ts-expect-error Async Server Component */} + + {/* @ts-expect-error Async Server Component */} + + {/* @ts-expect-error Async Server Component */} + + {/* @ts-expect-error Async Server Component */} + + +
+
+ ); } diff --git a/src/app/components/SocialWidget/SocialWidget.tsx b/src/app/components/SocialWidget/SocialWidget.tsx index 7e5120b..df8b969 100644 --- a/src/app/components/SocialWidget/SocialWidget.tsx +++ b/src/app/components/SocialWidget/SocialWidget.tsx @@ -5,20 +5,20 @@ import { getSocialLinks } from '@/lib/fetch-utils'; import { Icon } from '@/components/Icon'; export default async function SocialWidget() { - const socialLinks = await getSocialLinks(); + const socialLinks = await getSocialLinks(); - return ( -
-

Social

-
    - {socialLinks.map(({ title, url, icon }) => ( -
  • - - - -
  • - ))} -
-
- ); + return ( +
+

Social

+
    + {socialLinks.map(({ title, url, icon }) => ( +
  • + + + +
  • + ))} +
+
+ ); } diff --git a/src/app/components/TagWidget/TagWidget.tsx b/src/app/components/TagWidget/TagWidget.tsx index 1582ff1..df00fb1 100644 --- a/src/app/components/TagWidget/TagWidget.tsx +++ b/src/app/components/TagWidget/TagWidget.tsx @@ -3,22 +3,22 @@ import Link from 'next/link'; import { getTagLinks } from '@/lib/fetch-utils'; export default async function TagWidget() { - const tagLinks = await getTagLinks(); + const tagLinks = await getTagLinks(); - return ( -
-

Tag

- {tagLinks.length !== 0 && ( -
    - {tagLinks.map(({ title, url }) => ( -
  • - - {title} - -
  • - ))} -
- )} -
- ); + return ( +
+

Tag

+ {tagLinks.length !== 0 && ( +
    + {tagLinks.map(({ title, url }) => ( +
  • + + {title} + +
  • + ))} +
+ )} +
+ ); } diff --git a/src/app/contact/page.tsx b/src/app/contact/page.tsx index e7f2f4f..e59cba5 100644 --- a/src/app/contact/page.tsx +++ b/src/app/contact/page.tsx @@ -1,5 +1,5 @@ import { ContactPage } from '@/components/ContactPage'; export default function Contact() { - return ; + return ; } diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 6c46c19..4ab3def 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -13,46 +13,46 @@ import { Newsletter } from '@/components/Newsletter/Newsletter'; const inter = Inter({ subsets: ['latin'] }); export const metadata = { - title: 'Liva | Personal blog template for Next.js', - description: `Liva is a modern and fully customizable minimal blog theme that will help you create any kind of website + title: 'Liva | Personal blog template for Next.js', + description: `Liva is a modern and fully customizable minimal blog theme that will help you create any kind of website whether that's personal, travel, news, photography, tech, food, or other niches.`, }; type HeaderMenuData = { - items: NavigationItem[]; + items: NavigationItem[]; }; type FooterData = FooterProps; async function getData() { - const siteInfo = await getSiteInfo(); - const headerMenu = await getFileMetadata( - '_metadata', - 'header-menu', - ); - const footer = await getFileBySlug('_metadata', 'footer'); - - return { headerMenu, footer, siteInfo }; + const siteInfo = await getSiteInfo(); + const headerMenu = await getFileMetadata( + '_metadata', + 'header-menu', + ); + const footer = await getFileBySlug('_metadata', 'footer'); + + return { headerMenu, footer, siteInfo }; } export default async function RootLayout({ - children, + children, }: { children: React.ReactNode }) { - const { headerMenu, footer, siteInfo } = await getData(); - - return ( - - - - {children} - -
- -
- - - ); + const { headerMenu, footer, siteInfo } = await getData(); + + return ( + + + + {children} + +
+ +
+ + + ); } diff --git a/src/app/page.tsx b/src/app/page.tsx index 9cc53c6..8d911d7 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -16,56 +16,56 @@ import { PillarPost } from '@/components/PillarPost'; import { Sidebar } from '@/server-components/Sidebar'; export default async function Home() { - const allPosts = await getAllFilesMetadata('blog'); + const allPosts = await getAllFilesMetadata('blog'); - const data = allPosts.slice(0, POSTS_PER_PAGE); - const { authorName } = await getAuthorInfo(); + const data = allPosts.slice(0, POSTS_PER_PAGE); + const { authorName } = await getAuthorInfo(); - const recentPosts = allPosts - .filter((post) => post.type === 'featured') - .slice(0, 3); - const pillarPost = allPosts.find((post) => post.type === 'pillar'); + const recentPosts = allPosts + .filter((post) => post.type === 'featured') + .slice(0, 3); + const pillarPost = allPosts.find((post) => post.type === 'pillar'); - return ( -
-
-
-
- {pillarPost && ( - - )} -
-
-
-
-
-
- {recentPosts.map((post) => ( - - ))} -
-
-
-
-
-
-
-
- -
-
- -
-
- {/* @ts-expect-error Async Server Component */} - -
-
-
-
- ); + return ( +
+
+
+
+ {pillarPost && ( + + )} +
+
+
+
+
+
+ {recentPosts.map((post) => ( + + ))} +
+
+
+
+
+
+
+
+ +
+
+ +
+
+ {/* @ts-expect-error Async Server Component */} + +
+
+
+
+ ); } diff --git a/src/components/AboutPage/AboutPage.tsx b/src/components/AboutPage/AboutPage.tsx index e6d29ae..7763dde 100644 --- a/src/components/AboutPage/AboutPage.tsx +++ b/src/components/AboutPage/AboutPage.tsx @@ -8,29 +8,29 @@ import { MDXComponent } from '@/components/MDXComponent'; export type SinglePostProps = AuthorInfo & FileInfo & FileContent; export const AboutPage = (props: SinglePostProps) => { - const { title, image, code, authorName } = props; + const { title, image, code, authorName } = props; - return ( -
-
-
-
- {image && ( - {authorName} - )} -

{title}

-
- -
-
-
-
-
- ); + return ( +
+
+
+
+ {image && ( + {authorName} + )} +

{title}

+
+ +
+
+
+
+
+ ); }; diff --git a/src/components/ContactForm/ContactForm.tsx b/src/components/ContactForm/ContactForm.tsx index fabc1b5..e7cb73b 100644 --- a/src/components/ContactForm/ContactForm.tsx +++ b/src/components/ContactForm/ContactForm.tsx @@ -1,55 +1,55 @@ export const ContactForm = () => { - return ( -
-
-
-
-

Hi Write To Me

-
-
- -
-
- -
-
- -
-
-