add prettier formatter to all file
This commit is contained in:
+10
-14
@@ -1,19 +1,15 @@
|
||||
import BlogPage from '@/components/blog';
|
||||
import Layout from '@/components/layout';
|
||||
import articles from '@/data/articles.json';
|
||||
import BlogPage from "@/components/blog";
|
||||
import Layout from "@/components/layout";
|
||||
import articles from "@/data/articles.json";
|
||||
|
||||
function Blog({ params: { slug } }) {
|
||||
const article = articles.find((item) => item.id === +slug);
|
||||
|
||||
const article = articles.find(item => item.id === +slug);
|
||||
|
||||
return (
|
||||
<Layout title='وبلاگ' name='blog'>
|
||||
<BlogPage
|
||||
article={article}
|
||||
articles={articles}
|
||||
/>
|
||||
</Layout>
|
||||
)
|
||||
return (
|
||||
<Layout title="وبلاگ" name="blog">
|
||||
<BlogPage article={article} articles={articles} />
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
|
||||
export default Blog
|
||||
export default Blog;
|
||||
|
||||
Reference in New Issue
Block a user