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 { FC } from 'react';
import { getPortfolioProjects } from '../utils/portfolio';
import { getBlogPosts } from '../utils/blog';
import { GetStaticProps } from 'next';
@@ -26,7 +25,7 @@ interface Props {
}[];
}
const Index: FC<Props> = ({ blogPosts, portfolioProjects }) => {
const Index = ({ blogPosts, portfolioProjects }: Props) => {
return (
<>
<Head>