Refactoring components

This commit is contained in:
Hazem Krimi
2023-03-19 18:21:12 +01:00
parent b82f90db48
commit 3a51b7fdb2
26 changed files with 171 additions and 158 deletions
+1 -2
View File
@@ -1,4 +1,3 @@
import React, { FC } from 'react';
import { useRouter } from 'next/router';
import { getBlogPosts } from '../../utils/blog';
import { Wrapper } from '../../styles/blog';
@@ -18,7 +17,7 @@ interface Props {
}[];
}
const Index: FC<Props> = ({ blogPosts }) => {
const Index = ({ blogPosts }: Props) => {
const router = useRouter();
return (