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 { getPortfolioProjects } from '../../utils/portfolio';
import { useRouter } from 'next/router';
import { Wrapper } from '../../styles/portfolio';
@@ -17,7 +16,7 @@ interface Props {
}[];
}
const Index: FC<Props> = ({ portfolioProjects }) => {
const Index = ({ portfolioProjects }: Props) => {
const router = useRouter();
return (