From 06322536520948db76fa50d0539cb0d1fe7d3b6f Mon Sep 17 00:00:00 2001 From: DefectingCat Date: Mon, 20 Mar 2023 17:18:17 +0800 Subject: [PATCH] Format components --- app/blog/page.tsx | 4 ++-- {components/rua/loading => app/blog}/post-card-loading.tsx | 0 {components => app/blog}/post-card.tsx | 0 {components => app}/dark-mode-btn.tsx | 0 {components => app}/footer.tsx | 0 app/layout.tsx | 4 ++-- {components => app}/nav-bar.tsx | 2 +- 7 files changed, 5 insertions(+), 5 deletions(-) rename {components/rua/loading => app/blog}/post-card-loading.tsx (100%) rename {components => app/blog}/post-card.tsx (100%) rename {components => app}/dark-mode-btn.tsx (100%) rename {components => app}/footer.tsx (100%) rename {components => app}/nav-bar.tsx (98%) diff --git a/app/blog/page.tsx b/app/blog/page.tsx index ff0bca5..2bfa057 100644 --- a/app/blog/page.tsx +++ b/app/blog/page.tsx @@ -1,5 +1,5 @@ -import PostCard from 'components/post-card'; -import PostCardLoading from 'components/rua/loading/post-card-loading'; +import PostCard from './post-card'; +import PostCardLoading from './post-card-loading'; import { PostPerPage, postLists } from 'lib/posts'; import { Fragment, Suspense } from 'react'; import Pagination from 'components/rua/rua-pagination'; diff --git a/components/rua/loading/post-card-loading.tsx b/app/blog/post-card-loading.tsx similarity index 100% rename from components/rua/loading/post-card-loading.tsx rename to app/blog/post-card-loading.tsx diff --git a/components/post-card.tsx b/app/blog/post-card.tsx similarity index 100% rename from components/post-card.tsx rename to app/blog/post-card.tsx diff --git a/components/dark-mode-btn.tsx b/app/dark-mode-btn.tsx similarity index 100% rename from components/dark-mode-btn.tsx rename to app/dark-mode-btn.tsx diff --git a/components/footer.tsx b/app/footer.tsx similarity index 100% rename from components/footer.tsx rename to app/footer.tsx diff --git a/app/layout.tsx b/app/layout.tsx index c0972a6..1d7b170 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,8 +1,8 @@ import 'styles/globals.css'; import '@docsearch/css/dist/style.css'; import RUAThemeProvider from './theme-provider'; -import HeadBar from 'components/nav-bar'; -import Footer from 'components/footer'; +import HeadBar from './nav-bar'; +import Footer from './footer'; import BackToTop from 'components/common/back-to-top'; import clsx from 'clsx'; import fonts from './fonts'; diff --git a/components/nav-bar.tsx b/app/nav-bar.tsx similarity index 98% rename from components/nav-bar.tsx rename to app/nav-bar.tsx index 467492b..61e6698 100644 --- a/components/nav-bar.tsx +++ b/app/nav-bar.tsx @@ -5,7 +5,7 @@ import clsx from 'clsx'; import Link from 'next/link'; import { memo, useEffect, useState } from 'react'; import { FiMenu } from 'react-icons/fi'; -import DarkModeBtn from 'components/dark-mode-btn'; +import DarkModeBtn from './dark-mode-btn'; const txtMenu = [ {