Skip to content

Commit

Permalink
chore: explicit use client
Browse files Browse the repository at this point in the history
Signed-off-by: mateonunez <mateonunez95@gmail.com>
  • Loading branch information
mateonunez committed Jan 24, 2024
1 parent 585aeb8 commit 93ff3b1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
16 changes: 5 additions & 11 deletions app/blog/[slug]/(page)/page-client.jsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
'use client';

import s from 'components/articles/article.module.css';

import ArticleMeta from 'components/articles/meta';
import ArticleTitle from 'components/articles/title';
import ArticleContent from 'components/articles/content';
import Article from 'components/articles';

export default function ArticlePageClient({ source, frontmatter }) {
const { title, date, author, tags, readingTime } = frontmatter;

return (
<div className={s.root}>
<ArticleMeta date={date} author={author} tags={tags} readingTime={readingTime} />

<ArticleTitle title={title} />

<ArticleContent source={source} />
<Article
frontMatter={frontmatter}
source={source}
/>
</div>
);
}
2 changes: 2 additions & 0 deletions components/articles/content/index.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import s from './content.module.css';

import { MDXRemote } from 'next-mdx-remote';
Expand Down
2 changes: 2 additions & 0 deletions components/articles/meta/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import s from './meta.module.css';

import Link from 'next/link';
Expand Down
2 changes: 2 additions & 0 deletions components/articles/title/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import s from './title.module.css';

export default function ArticleTitle({ title }) {
Expand Down

0 comments on commit 93ff3b1

Please sign in to comment.