mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
4466ba436b
## Description This PR ensures that the default prettier config is used for examples and templates. This config is compatible with `prettier@3` as well (upgrading prettier is bigger change that can be a future PR). ## Changes - Updated `.prettierrc.json` in root with `"trailingComma": "es5"` (will be needed upgrading to prettier@3) - Added `examples/.prettierrc.json` with default config (this will change every example) - Added `packages/create-next-app/templates/.prettierrc.json` with default config (this will change every template) ## Related - Fixes #54402 - Closes #54409
20 lines
588 B
TypeScript
20 lines
588 B
TypeScript
import { Post } from "@/viewmodels/post";
|
|
import PostPreview from "./post-preview";
|
|
|
|
type MoreStoriesProps = { posts: Array<Post> };
|
|
|
|
export default function MoreStories({ posts }: MoreStoriesProps) {
|
|
return (
|
|
<section>
|
|
<h2 className="mb-8 text-6xl md:text-7xl font-bold tracking-tighter leading-tight">
|
|
More Stories
|
|
</h2>
|
|
<div className="grid grid-cols-1 md:grid-cols-2 md:gap-x-16 lg:gap-x-32 gap-y-20 md:gap-y-32 mb-32">
|
|
{posts.map((post) => (
|
|
<PostPreview key={post.slug} post={post} />
|
|
))}
|
|
</div>
|
|
</section>
|
|
);
|
|
}
|