Skip to content

Commit

Permalink
refactor: refactor components files structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ZL-Asica committed Nov 12, 2024
1 parent a7dd645 commit dca130c
Show file tree
Hide file tree
Showing 13 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/app/about/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Metadata } from 'next';
import { getConfig } from '@/services/config';
import { getPostData } from '@/services/content';

import PostLayout from '@/components/layout/PostLayout';
import PostLayout from '@/components/posts/PostLayout';

function generateMetadata(): Metadata {
const config = getConfig();
Expand Down
2 changes: 1 addition & 1 deletion src/app/friends/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Metadata } from 'next';
import { getConfig } from '@/services/config';
import { getPostData } from '@/services/content';

import PostLayout from '@/components/layout/PostLayout';
import PostLayout from '@/components/posts/PostLayout';
import '@/styles/friendsLinks.css';

function generateMetadata(): Metadata {
Expand Down
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Script from 'next/script';

import { getConfig } from '@/services/config';

import ThemeProvider from '@/components/layout/ThemeProvider';
import ThemeProvider from '@/components/common/ThemeProvider';
import Header from '@/components/common/Header';
import Footer from '@/components/common/Footer';
import './globals.css';
Expand Down
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Loading from '@/app/loading';
import { getConfig } from '@/services/config';
import { getAllPosts } from '@/services/content';

import PostListLayout from '@/components/layout/PostListLayout';
import PostListLayout from '@/components/posts/PostListLayout';

async function Home() {
const config: Config = getConfig();
Expand Down
6 changes: 3 additions & 3 deletions src/app/posts/PostsClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { defaultTo, flatMap } from 'es-toolkit/compat';

import getFilteredPosts from '@/services/utils/getFilteredPosts';

import PostListLayout from '@/components/layout/PostListLayout';
import Pagination from '@/components/common/Pagination';
import SearchInput from '@/components/common/SearchInput';
import PostListLayout from '@/components/posts/PostListLayout';
import Pagination from '@/components/posts/Pagination';
import SearchInput from '@/components/posts/SearchInput';

interface PostsClientProperties {
posts: PostData[];
Expand Down
2 changes: 1 addition & 1 deletion src/app/posts/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Metadata } from 'next';
import { getConfig } from '@/services/config';
import { getAllPosts, getPostData } from '@/services/content';

import PostLayout from '@/components/layout/PostLayout';
import PostLayout from '@/components/posts/PostLayout';

// build static params for all posts
async function generateStaticParams() {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interface PostLayoutProperties {
}

const DisqusComments = dynamic(
() => import('@/components/common/DisqusComments')
() => import('@/components/posts/DisqusComments')
);

function PostLayout({ post, showThumbnail = true }: PostLayoutProperties) {
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit dca130c

Please sign in to comment.