feature/adds-admin-add-article #1

Merged
HideyoshiNakazone merged 21 commits from feature/adds-admin-add-article into main 2026-04-11 04:30:42 +00:00
2 changed files with 6 additions and 6 deletions
Showing only changes of commit 12f2976837 - Show all commits

View File

@@ -6,13 +6,13 @@ import { Suspense } from 'react';
import ReactMarkdown from 'react-markdown';
import remarkGfm from 'remark-gfm';
interface ArticlePageProps {
type ArticlePageProps = {
params: Promise<{ slug: string }>;
}
};
interface ArticleContentProps {
type ArticleContentProps = {
params: Promise<{ slug: string }>;
}
};
function readingTime(text: string): number {
const words = text.trim().split(/\s+/).length;

View File

@@ -36,9 +36,9 @@ const ArticleListSkeleton = () => (
</>
);
interface ArticleListProps {
type ArticleListProps = {
searchParams: Promise<{ page?: string; pageSize?: string }>;
}
};
const ArticleList = async ({ searchParams }: ArticleListProps) => {
const { page: pageParam, pageSize: pageSizeParam } = await searchParams;