From 00ceae93379d6b770a71ce8fdcd9df2aee6efbe5 Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Fri, 28 Jul 2023 21:28:22 +0600 Subject: [PATCH] Rename GitHub Project component --- src/components/GitProfile.jsx | 4 ++-- src/components/{project => github-project}/index.jsx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) rename src/components/{project => github-project}/index.jsx (97%) diff --git a/src/components/GitProfile.jsx b/src/components/GitProfile.jsx index 0c9d3a8..31c6e91 100644 --- a/src/components/GitProfile.jsx +++ b/src/components/GitProfile.jsx @@ -9,7 +9,7 @@ import Skill from './skill'; import Experience from './experience'; import Certification from './certification'; import Education from './education'; -import Project from './project'; +import GitHubProject from './github-project'; import Blog from './blog'; import Footer from './footer'; import { @@ -197,7 +197,7 @@ const GitProfile = ({ config }) => {
- { +const GitHubProject = ({ repo, loading, github, googleAnalytics }) => { if (!loading && Array.isArray(repo) && repo.length === 0) { return <>; } @@ -166,11 +166,11 @@ const Project = ({ repo, loading, github, googleAnalytics }) => { ); }; -Project.propTypes = { +GitHubProject.propTypes = { repo: PropTypes.array, loading: PropTypes.bool.isRequired, github: PropTypes.object.isRequired, googleAnalytics: PropTypes.object.isRequired, }; -export default Project; +export default GitHubProject;