Rename GitHub Project component

This commit is contained in:
Ariful Alam
2023-07-28 21:28:22 +06:00
parent 3ef0ca3a14
commit 00ceae9337
2 changed files with 5 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ import Skill from './skill';
import Experience from './experience'; import Experience from './experience';
import Certification from './certification'; import Certification from './certification';
import Education from './education'; import Education from './education';
import Project from './project'; import GitHubProject from './github-project';
import Blog from './blog'; import Blog from './blog';
import Footer from './footer'; import Footer from './footer';
import { import {
@@ -197,7 +197,7 @@ const GitProfile = ({ config }) => {
</div> </div>
<div className="lg:col-span-2 col-span-1"> <div className="lg:col-span-2 col-span-1">
<div className="grid grid-cols-1 gap-6"> <div className="grid grid-cols-1 gap-6">
<Project <GitHubProject
repo={repo} repo={repo}
loading={loading} loading={loading}
github={sanitizedConfig.github} github={sanitizedConfig.github}

View File

@@ -4,7 +4,7 @@ import { AiOutlineFork, AiOutlineStar } from 'react-icons/ai';
import { MdInsertLink } from 'react-icons/md'; import { MdInsertLink } from 'react-icons/md';
import { ga, languageColor, skeleton } from '../../helpers/utils'; import { ga, languageColor, skeleton } from '../../helpers/utils';
const Project = ({ repo, loading, github, googleAnalytics }) => { const GitHubProject = ({ repo, loading, github, googleAnalytics }) => {
if (!loading && Array.isArray(repo) && repo.length === 0) { if (!loading && Array.isArray(repo) && repo.length === 0) {
return <></>; return <></>;
} }
@@ -166,11 +166,11 @@ const Project = ({ repo, loading, github, googleAnalytics }) => {
); );
}; };
Project.propTypes = { GitHubProject.propTypes = {
repo: PropTypes.array, repo: PropTypes.array,
loading: PropTypes.bool.isRequired, loading: PropTypes.bool.isRequired,
github: PropTypes.object.isRequired, github: PropTypes.object.isRequired,
googleAnalytics: PropTypes.object.isRequired, googleAnalytics: PropTypes.object.isRequired,
}; };
export default Project; export default GitHubProject;